Module client
Expand description
Client implementation
EnumsΒ§
- Read
Write πResult - Possible results when reading from the named pipe and writing to the current processβs stdinput.
FunctionsΒ§
- build_
ssh_ πarguments - Build the SSH arguments from the username, host, port, and config.
- is_
alt_ πshift_ c_ combination - Checks if a key event represents the Alt+Shift+C combination.
- is_
keep_ πalive_ packet - Checks if a byte sequence represents a keep-alive packet.
- launch_
ssh_ πprocess - Launch the SSH process.
- main
- The entrypoint for the
clientsubcommand with API dependency injection. - read_
write_ πloop - Read all available [INPUT_RECORD_0] from the named pipe and write them to the console input buffer using the provided API.
- replace_
argument_ πplaceholders - Replaces placeholders in SSH command arguments.
- resolve_
username π - Resolve the username from the provided value or SSH config.
- run π
- The main run loop of the client.
- write_
console_ πinput - Write the given [INPUT_RECORD_0] to the console input buffer using the provided API.