{"id":43311723,"url":"https://github.com/lockbook/cli-rs","last_synced_at":"2026-02-01T21:20:11.374Z","repository":{"id":186830418,"uuid":"668467261","full_name":"lockbook/cli-rs","owner":"lockbook","description":"Create CLIs with dynamic completions in rust easily","archived":false,"fork":false,"pushed_at":"2025-10-01T20:21:17.000Z","size":88,"stargazers_count":5,"open_issues_count":9,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-01T22:16:51.834Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lockbook.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-07-19T22:05:09.000Z","updated_at":"2025-10-01T20:21:20.000Z","dependencies_parsed_at":"2023-08-07T22:54:06.077Z","dependency_job_id":"26e4e100-4a8f-44cf-91e3-b550cf950de1","html_url":"https://github.com/lockbook/cli-rs","commit_stats":null,"previous_names":["lockbook/cli-rs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lockbook/cli-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lockbook%2Fcli-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lockbook%2Fcli-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lockbook%2Fcli-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lockbook%2Fcli-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lockbook","download_url":"https://codeload.github.com/lockbook/cli-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lockbook%2Fcli-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28991734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T20:57:35.821Z","status":"ssl_error","status_checked_at":"2026-02-01T20:57:29.580Z","response_time":56,"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":[],"created_at":"2026-02-01T21:20:10.664Z","updated_at":"2026-02-01T21:20:11.362Z","avatar_url":"https://github.com/lockbook.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cli-rs\n\n🚧 wip 🚧\n\nA library to help you quickly write expressive CLIs. Built from the ground up with advanced features like [dynamic completions](https://github.com/clap-rs/clap/issues/1232) in mind.\n\n```rust\nCommand::name(\"lockbook\")\n   .subcommand(\n       Command::name(\"edit\")\n           .input(Arg::new(\"target\"))\n           .handler(|target: Arg\u003cString\u003e| println!(\"editing target file: {}\", target.get())),\n   )\n   .parse();\n```\n\nSpecify complicated arguments that are used often:\n\n```rust\nlet docs = Arg::\u003cUuid\u003e::new(\"target-file\")\n    .description(\"A uuid or path of a lockbook document\")\n    .parser(|str| {...})\n    .completions(|current_str, cursor_loc| {...});\n```\n\ncli-rs will automatically generate contextual help messages, and man pages.\ncli-rs will also generate a tiny completions file for every shell which will call your CLI, moving as much of the completion logic into Rust as possible.\n\n# spec\n\n```\ncommand_path --flags positional_args --flags positional_args\n```\n\nthings for now\n+ args are all required and must be provided in order\n+ flags are always optional (must impl default) and can be provided out of order\n+ flags that aren't booleans follow the form `--key=value`\n+ boolean that are boolean are parsed as either `--key`, `--key=false`, or `-k`\n+ a command can have subcommands or args \u0026 flags, but not both\n\nthings for later:\n+ support `--key value` \n+ can define an environment variable for flag values (cli specified value, env var fallback, then Default::default())\n+ subcommands inherit any flags as their own flags\n+ additionally all boolean flags can be grouped, such as `-rf`\n+ list args (support for optional args)\n+ detect invalid configuration at runtime\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flockbook%2Fcli-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flockbook%2Fcli-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flockbook%2Fcli-rs/lists"}