Expand description
cargo kick new — scaffold a new kick-rs project.
Walks the embedded template manifest and writes each file under a
freshly-created project directory, substituting {{project_name}}
/ {{project_name_snake}} into the contents.
Structs§
- NewArgs
- Decoded form of the
newsubcommand’s arguments.
Enums§
- NewError
- User-facing error from the
newflow. Stringly-typed because the CLI shows them to a human, not a downstream caller.
Functions§
- run
- Run the scaffold against the given args. Returns the path that was written so the caller can echo it back.
- validate_
name - Validate the project name. Mirrors what cargo itself accepts for
crate names: lowercase ASCII letters / digits /
-/_, must start with a letter, no consecutive hyphens.