Skip to main content

Module cli

Module cli 

Source
Expand description

CLI module — Clap argument parser, output helpers, and command implementations.

Modules§

commands
env_parser
Shared .env file parsing logic.
gitignore
Shared .gitignore patching logic.
output
Colored terminal output helpers.

Structs§

Cli
EnvVault CLI: encrypted environment variable manager.

Enums§

AuthAction
Auth subcommands for keyring and keyfile management.
Commands
All available subcommands.
EnvAction
Env subcommands for environment management.

Functions§

load_keyfile
Load the keyfile bytes from the path in CLI args, if provided.
prompt_new_password
Prompt for a new password with confirmation (used during init).
prompt_password
Get the vault password, trying in order:
prompt_password_for_vault
Get the vault password with an optional vault path for keyring lookup.
validate_env_name
Validate that an environment name is safe and sensible.
vault_path
Build the full path to a vault file from the CLI arguments.