Expand description
Virtual command implementations
This module contains implementations of shell commands that run in-process without spawning external processes. These provide faster execution and consistent behavior across platforms.
Structs§
- Command
Context - Context for virtual command execution
- Virtual
Command Registry - Registry of virtual commands
Enums§
- Stream
Chunk - A chunk of streaming output
Functions§
- are_
virtual_ commands_ enabled - Check if virtual commands are enabled
- basename
- Execute the basename command
- cat
- Execute the cat command
- cd
- Execute the cd command
- cp
- Execute the cp command
- dirname
- Execute the dirname command
- disable_
virtual_ commands - Disable virtual commands
- echo
- Execute the echo command
- enable_
virtual_ commands - Enable virtual commands
- env
- Execute the env command
- exit
- Execute the exit command
- false
- Execute the false command
- ls
- Execute the ls command
- mkdir
- Execute the mkdir command
- mv
- Execute the mv command
- pwd
- Execute the pwd command
- rm
- Execute the rm command
- seq
- Execute the seq command
- sleep
- Execute the sleep command
- test
- Execute the test command
- touch
- Execute the touch command
- true
- Execute the true command
- which
- Execute the which command
- yes
- Execute the yes command
Type Aliases§
- Virtual
Command Handler - Type for virtual command handler functions