|
| 1 | +project_name: json2csv |
| 2 | +report_sizes: true |
| 3 | + |
| 4 | +before: |
| 5 | + hooks: [ "go mod tidy", "go mod download" ] |
| 6 | + |
| 7 | +builds: |
| 8 | + - |
| 9 | + id: default |
| 10 | + env: [ CGO_ENABLED=0 ] |
| 11 | + goos: [ linux, windows ] |
| 12 | + goarch: [ amd64, arm64 ] |
| 13 | + |
| 14 | + - # HACK for macOS Ventura (13.x), which not supported UPX |
| 15 | + id: macOS_only |
| 16 | + env: [ CGO_ENABLED=0 ] |
| 17 | + goos: [ darwin ] |
| 18 | + goarch: [ amd64, arm64 ] |
| 19 | + |
| 20 | +upx: |
| 21 | + - |
| 22 | + ids: [ default ] |
| 23 | + enabled: true |
| 24 | + compress: best |
| 25 | + lzma: true |
| 26 | + brute: true |
| 27 | + |
| 28 | +brews: |
| 29 | + - |
| 30 | + tap: |
| 31 | + owner: koddr |
| 32 | + name: homebrew-tap |
| 33 | + branch: main |
| 34 | + token: "{{ .Env.GITHUB_TOKEN }}" |
| 35 | + pull_request: |
| 36 | + enabled: true |
| 37 | + git: |
| 38 | + url: "ssh://[email protected]:koddr/homebrew-tap.git" |
| 39 | + commit_author: |
| 40 | + name: Vic Shóstak |
| 41 | + |
| 42 | + commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" |
| 43 | + folder: Formula |
| 44 | + caveats: | |
| 45 | + After install json2csv, prepare folder with your data input in the *.json format, create JSON files with intents and filter. |
| 46 | +
|
| 47 | + 💡 Note: See the repository's Wiki page (https://github.com/koddr/json2csv/wiki) to understand structures of JSON files and get general recommendations for preparing the input data. |
| 48 | +
|
| 49 | + Next, run json2csv parser with options: |
| 50 | +
|
| 51 | + json2csv \ |
| 52 | + -json /path/to/input/json/folder \ |
| 53 | + -intents /path/to/intents-file.json \ |
| 54 | + -filter /path/to/filter-file.json \ |
| 55 | + -output /path/to/output/csv/folder \ |
| 56 | + -content-field message \ |
| 57 | + -min-word-len 5 \ |
| 58 | + -chunk 1000 |
| 59 | + |
| 60 | + Done! Output CSV file(s) has a default comma (,) separators between columns. |
| 61 | + homepage: "https://github.com/koddr/{{ .ProjectName }}" |
| 62 | + description: | |
| 63 | + The parser can read given folder with *.json files, filtering and qualifying input data with intent & stop words dictionaries and save results to CSV files by given chunk size. |
| 64 | + license: Apache 2.0 |
| 65 | + skip_upload: false |
| 66 | + |
| 67 | +nfpms: |
| 68 | + - |
| 69 | + maintainer: Vic Shóstak <[email protected]> |
| 70 | + description: | |
| 71 | + The parser can read given folder with *.json files, filtering and qualifying input data with intent & stop words dictionaries and save results to CSV files by given chunk size. |
| 72 | + homepage: "https://github.com/koddr/{{ .ProjectName }}" |
| 73 | + license: Apache 2.0 |
| 74 | + formats: [ deb, rpm, apk, archlinux ] |
| 75 | + |
| 76 | +archives: |
| 77 | + - |
| 78 | + format_overrides: |
| 79 | + - goos: windows |
| 80 | + format: zip |
| 81 | + files: [ LICENSE, README.md ] |
| 82 | + rlcp: true |
| 83 | + |
| 84 | +checksum: |
| 85 | + name_template: "checksums.txt" |
0 commit comments