Skip to main content

Module cli

Module cli 

Source
Expand description

CLI argument definitions via clap derive and dispatcher.

  1. CRUD de VPS — vps add|list|remove|edit|show|path|doctor|export|import
  2. connect — writes sibling active file (not a TOML field)
  3. One-shot execution — exec|sudo-exec|su-exec|scp|tunnel|health-check
  4. secrets — primary-key status/init/reencrypt (cifragem at-rest default)
  5. Completions

ZERO .env em runtime. ZERO telemetria. Ciclo one-shot: nascer → dispatch → morrer.

Structs§

CliArgs
Global ssh-cli arguments.

Enums§

Command
Top-level subcommands.
OutputFormat
Output format supported by the CLI.
ScpAction
Actions of the scp subcommand (regular files only; no -r / no SFTP).
SecretsAction
Actions of the secrets subcommand (primary-key / AEAD).
VpsAction
Actions of the vps subcommand.

Functions§

dispatch
Runs the requested subcommand.
generate_completions
Writes shell completions to stdout.
initialize_logs
Initializes tracing-subscriber.
parse_args
Parses CLI arguments.
resolve_format
Resolves output format: explicit > SSH_CLI_FORCE_TEXT > JSON if non-TTY > Text.