{"id":17726679,"url":"https://github.com/sergeysova/tomlcli.rs","last_synced_at":"2025-04-01T16:30:45.568Z","repository":{"id":57670149,"uuid":"118359167","full_name":"sergeysova/tomlcli.rs","owner":"sergeysova","description":"Query over your toml","archived":false,"fork":false,"pushed_at":"2018-06-06T12:28:18.000Z","size":13,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T11:06:17.123Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.rs/tomlcli","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/sergeysova.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}},"created_at":"2018-01-21T17:55:06.000Z","updated_at":"2020-05-07T21:46:14.000Z","dependencies_parsed_at":"2022-09-26T20:40:48.715Z","dependency_job_id":null,"html_url":"https://github.com/sergeysova/tomlcli.rs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeysova%2Ftomlcli.rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeysova%2Ftomlcli.rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeysova%2Ftomlcli.rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeysova%2Ftomlcli.rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergeysova","download_url":"https://codeload.github.com/sergeysova/tomlcli.rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246620304,"owners_count":20806745,"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":[],"created_at":"2024-10-25T17:06:32.330Z","updated_at":"2025-04-01T16:30:45.299Z","avatar_url":"https://github.com/sergeysova.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tomlcli\n\n[![Crates.io](https://img.shields.io/crates/v/tomlcli.svg?maxAge=2592000)](https://crates.io/crates/tomlcli)\n[![Crates.io](https://img.shields.io/crates/l/tomlcli.svg?maxAge=2592000)](https://github.com/sergeysova/tomlcli/blob/master/LICENSE)\n\nPretty print and query TOML files\n\n\n[![asciicast](https://asciinema.org/a/158411.png)](https://asciinema.org/a/158411)\n\n\n## How to use\n\n```bash\ncargo install tomlcli\n```\n\nNext use `toml` or `tomlcli` binary.\n\n```bash\n# Pretty print contents of file\ntoml Cargo.toml\n\n# Pretty print table\ntoml Cargo.toml package\n\n# Print value in table\ntoml Cargo.toml package.name\n\n# Print value in array\ntoml Cargo.toml package.keywords.0\n\n# Print table in array\ntoml Cargo.lock package.0\n\n# Print value in table in array\ntoml Cargo.lock package.0.name\n```\n\n## Todo\n\n1. Pretty print table in field:\n\n```toml\n[[bin]]\nname = \"foo\"\npath = \"./bar.rs\"\n```\n\n2. Query fields with dot:\n\n```toml\n[example]\n\"foo.bar\" = \"example\"\n```\n\n## License\n\nCopyright (c) Sergey Sova. All rights reserved.\nLicensed under the MIT license. See [LICENSE](https://github.com/sergeysova/tomlcli.rs/blob/master/LICENSE) file in the project root for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeysova%2Ftomlcli.rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergeysova%2Ftomlcli.rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeysova%2Ftomlcli.rs/lists"}