Expand description
socket-patch CLI library crate.
Exposes the clap parser types so integration tests can verify the public
CLI contract without invoking the binary. The main.rs binary entry point
is a thin wrapper that delegates to parse_with_uuid_fallback and the
run function on each command’s Args.
Modules§
- args
- Shared CLI arguments flattened into every subcommand.
- commands
- ecosystem_
dispatch - json_
envelope - Unified JSON output envelope shared across every subcommand.
- output
Structs§
Enums§
Functions§
- looks_
like_ uuid - Check whether
slooks like a UUID (8-4-4-4-12 hex pattern). - parse_
with_ uuid_ fallback - Parse a full argv vector, falling back to
get <UUID>when the user invokedsocket-patch <UUID> [...]directly. Returns the original clap error if the fallback also fails or if the first arg isn’t a UUID.