{"id":19094543,"url":"https://github.com/vincent-thomas/clier","last_synced_at":"2026-01-05T11:38:09.902Z","repository":{"id":190214377,"uuid":"682178487","full_name":"vincent-thomas/clier","owner":"vincent-thomas","description":"A command line parser and framework for rust","archived":false,"fork":false,"pushed_at":"2024-05-22T20:30:26.000Z","size":280,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-22T20:32:59.747Z","etag":null,"topics":["cli","framework","library","parser","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/clier","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/vincent-thomas.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":"2023-08-23T15:57:56.000Z","updated_at":"2024-06-02T18:14:16.979Z","dependencies_parsed_at":"2024-06-10T20:49:10.113Z","dependency_job_id":null,"html_url":"https://github.com/vincent-thomas/clier","commit_stats":null,"previous_names":["vincent-thomas/clier"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincent-thomas%2Fclier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincent-thomas%2Fclier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincent-thomas%2Fclier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincent-thomas%2Fclier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vincent-thomas","download_url":"https://codeload.github.com/vincent-thomas/clier/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245048572,"owners_count":20552536,"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","framework","library","parser","rust"],"created_at":"2024-11-09T03:30:10.619Z","updated_at":"2026-01-05T11:38:09.874Z","avatar_url":"https://github.com/vincent-thomas.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clier\n\n## Command Line Argument Parser for Rust\n\n`Clier` is a command line argument parser and command framework for rust.\n\n### Parser\n\nTo start a new cli projects run:\n\n```console\n$ cargo new demo\n$ cargo add clier\n```\n\nThen define your CLI in `main.rs`:\n\n```rust\nuse clier_parser::Argv;\n\nlet args: Argv = Argv::parse();\nprintln!(\"{:#?}\", args);\n\n```\n\nAnd try it out:\n\n```md\n$ cargo run -- command subcommand --test=value --no-production --help --try-me=false\nArgv {\ncommands: [\n\"command\",\n\"subcommand\",\n],\nflags: {\n\"test\": \"value\",\n\"production\": \"false\",\n\"help\": \"true\",\n\"try-me\": \"false\",\n},\n}\n```\n\n### Framework\n\n```rust\nuse clier::run::ExitCode;\nuse clier::{CliMeta, Clier, CmdCollection, CmdMeta, Commands};\nfn main() {\n  let clier_builder = Clier::parse().meta(CliMeta {\n    name: \"example-clier\".into(),\n    usage: Some(\"[command]\".into()),\n    description: \"testing\".into(),\n    version: Some((0, 0, 0))\n  });\n\n  let app = clier_builder.runnable(vec![Commands::Collection(CmdCollection {\n    meta: CmdMeta::new(\"testing\", \"testing\"),\n    children: Box::from([Commands::Command {\n      meta: CmdMeta::new(\"testchild\", \"testing\"),\n      handler: |_| {\n        println!(\"hello\");\n        ExitCode(0)\n      }\n    }])\n  })]);\n\n  app.run();\n}\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincent-thomas%2Fclier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvincent-thomas%2Fclier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincent-thomas%2Fclier/lists"}