feat(cli): implement wraith connect subcommand with clap derive
All CLI flags from client.md: --server, --peer, --transport (default tcp), --identity, --socks5 (default 127.0.0.1:1080), --forward (repeatable), --remote-forward (repeatable), --proxy, --iroh-relay, --tls-server-name, --insecure. Env var defaults: WRAITH_SERVER, WRAITH_IDENTITY. Validates --server required for tcp/tls, --peer required for iroh, --identity required. Warns on --proxy with --transport tcp (ADR-019). Translates args to ConnectOptions and calls ClientSession::new(opts).run().await. Errors to stderr with non-zero exit.
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -5585,7 +5585,9 @@ version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"clap",
|
||||
"iroh",
|
||||
"tokio",
|
||||
"url",
|
||||
"wraith-core",
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user