Skip to main content

Crate socket_patch_cli

Crate socket_patch_cli 

Source
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§

Cli

Enums§

Commands

Functions§

looks_like_uuid
Check whether s looks 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 invoked socket-patch <UUID> [...] directly. Returns the original clap error if the fallback also fails or if the first arg isn’t a UUID.