use-command-name 0.0.1

Command and executable name primitives for RustUse CLI-adjacent code
Documentation
  • Coverage
  • 100%
    19 out of 19 items documented1 out of 14 items with examples
  • Size
  • Source code size: 9.05 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 500.22 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-cli
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-command-name

Command and executable name primitives for RustUse CLI-adjacent code.

This crate validates command names and extracts executable names from paths. It does not implement command routing, subcommands, aliases, or dispatch.

Example

use use_command_name::{CommandName, ExecutableName};

let command = CommandName::new("rustuse")?;
let executable = ExecutableName::new("rustuse.exe")?;

assert_eq!(command.as_str(), "rustuse");
assert_eq!(executable.display_name(), "rustuse.exe");
# Ok::<(), use_command_name::CommandNameError>(())

Scope

Use this crate for explicit command name vocabulary, not parser or runtime behavior.