Registry / cli / cmd-lib

cmd-lib

JSON →
library2.0.0rscratesunverified

Common Rust command-line macros and utilities to write shell script-like tasks easily.

# Cargo.toml [dependencies] cmd_lib = "2.0.0"
INSTALL
IMPORT
SIG · CMD-LIB
C
cmd-lib
clirustv2.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

run_cmd
use cmd_lib::run_cmd;

Runs a shell command using the run_cmd! macro.

use cmd_lib::run_cmd; fn main() { run_cmd!("echo Hello, world!").unwrap(); println!("Command executed"); }
Debug
Known issues
gotchaMacros may have different behavior across platforms (Unix vs Windows).
fix
Test commands on target platform and use platform-specific alternatives if needed.
affects: >= 0.0.0
Upgrade
Version history
2.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
26
OpenAI (training)
1
Resources
cmd-lib — cargo add cmd-lib · libregistry