{"id":13682604,"url":"https://github.com/rust-cli/climake","last_synced_at":"2025-04-30T09:33:21.131Z","repository":{"id":55436610,"uuid":"271146852","full_name":"rust-cli/climake","owner":"rust-cli","description":"The simplistic, dependency-free cli library ✨","archived":true,"fork":false,"pushed_at":"2021-01-03T23:47:24.000Z","size":200,"stargazers_count":133,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-09T14:18:13.153Z","etag":null,"topics":["cli","cli-library","no-dependencies","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/climake","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rust-cli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-10T01:26:20.000Z","updated_at":"2024-03-20T18:33:00.000Z","dependencies_parsed_at":"2022-08-15T00:20:15.586Z","dependency_job_id":null,"html_url":"https://github.com/rust-cli/climake","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-cli%2Fclimake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-cli%2Fclimake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-cli%2Fclimake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-cli%2Fclimake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-cli","download_url":"https://codeload.github.com/rust-cli/climake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224206118,"owners_count":17273392,"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","cli-library","no-dependencies","rust"],"created_at":"2024-08-02T13:01:49.550Z","updated_at":"2024-11-12T02:31:09.019Z","avatar_url":"https://github.com/rust-cli.png","language":"Rust","readme":"# climake \n\nThe simplistic, dependency-free cli library ✨\n\n- **[Documentation](https://docs.rs/climake)**\n- [Crates.io](https://crates.io/crates/climake)\n\n---\n\nThis branch represents the unpublished rewrite version of climake with many advantages compared to the original version which is no longer developed upon!\n\n## Example 📚\n\nDemo of a simple package manager:\n\n```rust\nuse climake::prelude::*;\n\nfn main() {\n    let package = Argument::new(\n        \"The package name\",\n        vec!['p', 'i'],\n        vec![\"pkg, package\"],\n        Input::Text,\n    );\n\n    let add = Subcommand::new(\"add\", vec![\u0026package], vec![], \"Adds a package\");\n    let rem = Subcommand::new(\"rem\", vec![\u0026package], vec![], \"Removes a package\");\n\n    let cli = CliMake::new(\n        \"MyPkg\",\n        vec![],\n        vec![\u0026add, \u0026rem],\n        \"A simple package manager demo\",\n        \"1.0.0\",\n    );\n\n    let parsed = cli.parse();\n\n    for subcommand in parsed.subcommands {\n        if subcommand.inner == \u0026add {\n            println!(\"Adding package {:?}..\", subcommand.arguments[0]);\n        } else if subcommand.inner == \u0026rem {\n            println!(\"Removing package {:?}..\", subcommand.arguments[0]);\n        }\n    }\n}\n```\n\n## Installation 🚀\n\nSimply add the following to your `Cargo.toml` file:\n\n```toml\n[dependencies]\nclimake = \"3.0.0-pre.1\" # rewrite isn't out just yet!\n```\n\n## License\n\nThis library is duel-licensed under both the [MIT License](https://opensource.org/licenses/MIT) ([`LICENSE-MIT`](https://github.com/rust-cli/climake/blob/master/LICENSE-MIT)) and [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0) ([`LICENSE-APACHE`](https://github.com/rust-cli/climake/blob/master/LICENSE-APACHE)), you may choose at your discretion.\n","funding_links":[],"categories":["Rust","Libraries"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-cli%2Fclimake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-cli%2Fclimake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-cli%2Fclimake/lists"}