{"id":58520,"library":"cmd-lib","title":"Cmd Lib","description":"Common Rust command-line macros and utilities to write shell script-like tasks easily.","status":"active","version":"2.0.0","language":"rust","source_language":null,"source_url":"https://github.com/rust-shell-script/rust_cmd_lib","tags":["cli","shell","macros","command-line","utility"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ncmd_lib = \"2.0.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add cmd_lib","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"run_cmd","correct":"use cmd_lib::run_cmd;"}],"quickstart":{"code":"use cmd_lib::run_cmd;\n\nfn main() {\n    run_cmd!(\"echo Hello, world!\").unwrap();\n    println!(\"Command executed\");\n}","lang":"rust","description":"Runs a shell command using the run_cmd! macro."},"warnings":[{"fix":"Test commands on target platform and use platform-specific alternatives if needed.","message":"Macros may have different behavior across platforms (Unix vs Windows).","severity":"gotcha","affected_versions":">= 0.0.0"}],"env_vars":null,"search_vec":"'cli':19 'cmd':1 'command':6,23 'command-lin':5,22 'common':3 'easili':18 'lib':2 'like':16 'line':7,24 'macro':8,21 'rust':4 'script':15 'script-lik':14 'shell':13,20 'task':17 'util':10,25 'write':12","created_at":"2026-06-16T16:26:44.699059+00:00","updated_at":"2026-06-16T16:26:44.699059+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/rust-shell-script/rust_cmd_lib","github":"https://github.com/rust-shell-script/rust_cmd_lib","docs":"https://docs.rs/cmd_lib/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["cli","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}