{"id":24119057,"url":"https://github.com/pauliyobo/cmd-rs","last_synced_at":"2026-04-13T18:01:59.287Z","repository":{"id":125215347,"uuid":"411228492","full_name":"pauliyobo/cmd-rs","owner":"pauliyobo","description":"Build interactive commandline apps with  rust","archived":false,"fork":false,"pushed_at":"2022-01-13T05:44:43.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-14T07:53:43.331Z","etag":null,"topics":["cli","command-line","rust","shell"],"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/pauliyobo.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":"2021-09-28T10:04:18.000Z","updated_at":"2023-02-17T02:22:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd59a3c0-3d2b-4452-b5a0-039a15f940ff","html_url":"https://github.com/pauliyobo/cmd-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pauliyobo/cmd-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauliyobo%2Fcmd-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauliyobo%2Fcmd-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauliyobo%2Fcmd-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauliyobo%2Fcmd-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pauliyobo","download_url":"https://codeload.github.com/pauliyobo/cmd-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pauliyobo%2Fcmd-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31764317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","command-line","rust","shell"],"created_at":"2025-01-11T09:39:37.175Z","updated_at":"2026-04-13T18:01:59.261Z","avatar_url":"https://github.com/pauliyobo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cmd-rs\nCmd-rs is an attempt to build a library which helps to build interactive commandline apps with ease.  \nIt was inspired by the cmd module in python and the excellent [cmd2](https://github.com/python-cmd2/cmd2) library.  \n## Usage\nTo use this library you can set the dependency which points to this git repository, since it has not been published on crates.io yet.  \n\n```toml\n[dependencies]\ncmd-rs = { git = \"https://github.com/pauliyobo/cmd-rs\"}\n```\n\nA simple example which just prints the text test when invoked is the following:\n\n```rust\nuse cmd_rs::{inventory, make_command, CommandProcessor, Result};\n\n#[make_command]\nfn test() -\u003e Result\u003c()\u003e {\n    println!(\"test\");\n    Ok(())\n}\n\nfn main() {\n    CommandProcessor::new()\n        .with_prompt(\"\u003e\")\n        .run();\n}\n```\n\nThere is also another example in the examples directory.\n## Roadmap\nI started building cmd-rs also to gain more experience with the rust programming language, so The API  will most likely break a lot. Sorry for the inconvenience. However those are  some of the steps I'd like to get done at some point, in no particular order.\n* [ ] Adding validation when calling commands. E.G. the library should error if a command contains whitespace.\n* [ ] Adding more documentation \n* [ ] Even if this probably at a later stage. Adding a CI pipeline. perhaps github actions?\n* [ ] add pre-commit hook to lint and format code instead of having to do that manually\n* [ ] Adding tests where possible\n* [ ] publishing on crates.io\n## Contributing\nIf you find this project useful and would like to improve it, feel free to open an issue or send a pull request","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpauliyobo%2Fcmd-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpauliyobo%2Fcmd-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpauliyobo%2Fcmd-rs/lists"}