Module cli

Module cli 

Expand description

CLI interface

StructsΒ§

Args
Cluster SSH tool for Windows inspired by csshX
CLIArgsCommand
Default implementation of ArgsCommand trait
CLIConfigManager
Default implementation of ConfigManager trait
CLIEnvironment
Default implementation of Environment trait
CLIInput
Default implementation of Input trait that reads from stdin
CLILoggerInitializer
Default implementation of LoggerInitializer trait
CLIOutput
Default implementation of Output trait that writes to stdout/stderr
MainEntrypoint
Main Entrypoint struct

EnumsΒ§

Commands πŸ”’
The command CLI subcommand

ConstantsΒ§

PKG_NAME πŸ”’

TraitsΒ§

ArgsCommand
Trait for Args operations to enable mocking in tests
ConfigManager
Trait for configuration management to enable dependency injection and testing
Entrypoint
Trait defining the entrypoint functions of the different subcommands
Environment
Trait for environment operations to enable dependency injection and testing
Input
Trait for reading input to enable dependency injection and testing
LoggerInitializer
Trait for logger initialization to enable mocking in tests
Output
Trait for writing output to enable dependency injection and testing

FunctionsΒ§

execute_parsed_command πŸ”’
Execute a parsed command using the provided entrypoint
handle_special_commands πŸ”’
Handle special commands that don’t need full parsing
main
The main entrypoint
read_user_input πŸ”’
Read user input from stdin
run_interactive_mode πŸ”’
Run the interactive mode loop for GUI launches
show_interactive_prompt πŸ”’
Display the interactive mode prompt and instructions