Execute the Rust CLI/TUI development task described in $ARGUMENTS.
Steps
- If
$ARGUMENTSis empty, report an error requesting a description of the desired terminal application. - Read
$SKILL_DIR/references/CLI_TUI_GUIDE.mdfor architectural patterns, library specifics (clap, inquire, ratatui), and common Cargo configurations. - Generate or modify the required Rust code according to best practices.
Output
Generated Rust code implementing the requested CLI or TUI functionality.
Examples
User Request: "Create a basic CLI that accepts a config file path using clap."
Response Strategy: Generate a main.rs using clap::Parser with a config argument, following the patterns in the guide.
Troubleshooting
- If compilation fails due to missing features, refer to the guide to ensure proper
cargo addcommands were used (e.g.,clap --features derive).