Crate csshw_lib
Expand description
Cluster SSH tool for Windows inspired by csshX
Modulesยง
- cli
- CLI interface
- client
- Client implementation
- daemon
- Daemon imlementation
- serde
- Serialization/Deserialization implemention for windows INPUT_RECORD_0.
- utils
- Utilities shared by daemon and client.
Structsยง
- Default
Registry - Default implementation of Registry trait that performs actual Windows registry API calls
- Production
File System - Default implementation of FileSystem trait that performs actual file system operations
- Windows
Settings Default Terminal Application Guard - Guard storing previous/old
DelegationConsoleandDelegationTerminalregistry values.
Constantsยง
- CLSID_
CONHOST ๐ - CLSID identifying
conhost.exein the registry. - CLSID_
DEFAULT ๐ - CLSID identifying the default configuration in the registry.
- DEFAULT_
TERMINAL_ ๐APP_ REGISTRY_ PATH - Registry path where
DelegationConsoleandDelegationTerminalregistry keys are stored. - DELEGATION_
CONSOLE ๐ DelegationConsoleregistry key.- DELEGATION_
TERMINAL ๐ DelegationTerminalregistry key.
Traitsยง
- File
System - Trait for file system operations to enable mocking in tests
- Registry
- Trait for registry operations to enable mocking in tests
Functionsยง
- create_
process - Create process with command line using the provided API (testable version)
- get_
console_ window_ handle - Return the Window Handle [HWND] for the foreground window associated with the given
process_id. - init_
logger - Initialize the logger.
- init_
logger_ with_ fs - Initialize the logger with the provided file system operations.
- is_
launched_ from_ gui - Detect if application was launched from Windows Explorer (GUI) vs command line using the provided console API.
- spawn_
console_ process - Launch the given console application with the given arguments as a new detached process with its own console window.