Expand description
Command trait and built-in command implementations.
Structs§
- Bracket
Command - The
[command: evaluate conditional expressions (requires closing]). - CatCommand
- The
catcommand: concatenate files and/or stdin. - Command
Context - Context passed to command execution.
- Command
Meta - Declarative metadata for a command, used by –help and the help builtin.
- Command
Result - Result of executing a command.
- Echo
Command - The
echocommand: prints arguments to stdout. - Egrep
Command egrep— alias forgrep -E.- False
Command - The
falsecommand: always fails (exit code 1). - Fgrep
Command fgrep— alias forgrep -F.- Flag
Info - Metadata about a single command flag.
- LsCommand
- The
lscommand: list directory contents. - Mkdir
Command - The
mkdircommand: create directories (-pfor parents). - PwdCommand
- The
pwdcommand: print working directory. - Test
Command - The
testcommand: evaluate conditional expressions. - Touch
Command - The
touchcommand: create empty file or update mtime. - True
Command - The
truecommand: always succeeds (exit code 0).
Enums§
- Flag
Status - Support status of a command flag.
Traits§
- Virtual
Command - Trait for commands that can be registered and executed.
Functions§
- format_
help - Format help text from
CommandMetafor display via--help. - register_
default_ commands - Register the default set of commands.
- unknown_
option - Standard error for unrecognized options, matching bash/GNU conventions.
Type Aliases§
- Exec
Callback - Callback type for sub-command execution (e.g.
xargs,find -exec).