{"id":15426154,"url":"https://github.com/cryptaliagy/tomlq","last_synced_at":"2025-04-04T07:08:12.393Z","repository":{"id":57670188,"uuid":"101500021","full_name":"cryptaliagy/tomlq","owner":"cryptaliagy","description":"A tool for getting data from TOML files on the command line","archived":false,"fork":false,"pushed_at":"2025-01-29T17:43:48.000Z","size":60,"stargazers_count":65,"open_issues_count":3,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T06:09:04.867Z","etag":null,"topics":["cli","jq","parsing","rust","toml"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cryptaliagy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-26T16:59:41.000Z","updated_at":"2025-03-23T11:35:39.000Z","dependencies_parsed_at":"2024-09-20T12:47:40.978Z","dependency_job_id":"7132245f-3d52-4929-be3d-a2577d1c93ad","html_url":"https://github.com/cryptaliagy/tomlq","commit_stats":null,"previous_names":["cryptaliagy/tomlq","jamesmunns/tomlq"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptaliagy%2Ftomlq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptaliagy%2Ftomlq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptaliagy%2Ftomlq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptaliagy%2Ftomlq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptaliagy","download_url":"https://codeload.github.com/cryptaliagy/tomlq/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135144,"owners_count":20889421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","jq","parsing","rust","toml"],"created_at":"2024-10-01T17:55:00.182Z","updated_at":"2025-04-04T07:08:12.366Z","avatar_url":"https://github.com/cryptaliagy.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tq\n\nThis repository was previously available under `cryptaliagy/tq-rs`, and by the crate [`tq-rs`](https://crates.io/crates/tq-rs).\n\nThe current iteration of this crate supports both the `tq` and `tomlq` binaries. Wherever possible, `tq` should be preferred, and `tomlq` will be removed from the crate for the `0.2.0` version (scheduled for January 1, 2025).\n\n## Installing\n\n- Using `cargo` (compiles from source): `cargo install tomlq`\n- Using `cargo-binstall` (downloads from Github Releases page): `cargo binstall -y tomlq`\n\n## Migrating from `tq-rs` crate\n\nThe only step that is required to migrate from `tq-rs` to `tomlq` is to change the `cargo install` (or `cargo binstall`) step from referencing `tq-rs` to referencing `tomlq`. The binary has the same name, and the usage is the same.\n\n## Usage\n\n\u003e N.B. Use `tq --help` after installing for more information\n\n### Getting package version from `Cargo.toml`\n\n```\ntq -f Cargo.toml 'package.version'\n```\n\n### Exporting package version as job output in Github Actions\n\n```yaml\njobs:\n  get-version:\n    runs-on: ubuntu-latest\n    outputs:\n      version: ${{ steps.get-version.outputs.version }}\n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v4\n\n      - name: Install cargo-binstall\n        run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash\n\n      - name: Install tq\n        run: cargo binstall -y tomlq\n\n      - id: get-version\n        name: Output the current version of the project\n        run: echo \"version=$(tq -f Cargo.toml 'package.version')\" \u003e\u003e \"$GITHUB_OUTPUT\"\n```\n\n\u003e N.B. See [the release pipeline](./.github/workflows/release.yaml) file for how this job is used.\n\n## Contributions\n\nContributions are welcome! I just needed this one feature, so I haven't spent any additional time on this. If you have an idea, please feel free to open an issue, if you've implemented some additional features, please feel free to open a PR!\n\n## License\n\nLicensed under the [MIT License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptaliagy%2Ftomlq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptaliagy%2Ftomlq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptaliagy%2Ftomlq/lists"}