kraven 0.1.0

Environment profile manager for named environment variable profiles
kraven-0.1.0 is not a library.

kraven

Environment profile manager for named environment variable profiles.

Installation

cargo install kraven

Usage

# List available profiles
kraven list

# Create or edit a profile
kraven edit my-profile

# Activate a profile (spawns a subshell with env vars)
kraven activate my-profile

# Show the currently active profile
kraven current

# Display profile contents
kraven show my-profile

# Display profile contents with masked values
kraven show my-profile --mask

# Show how to exit the current kraven session
kraven deactivate

# Remove a profile
kraven remove my-profile

# Generate shell completions
kraven completions bash > ~/.local/share/bash-completion/completions/kraven
kraven completions zsh > ~/.zfunc/_kraven
kraven completions fish > ~/.config/fish/completions/kraven.fish

Profile Format

Profiles are stored as plain text files in ~/.config/kraven/ using the standard dotenv format:

KEY=value
ANOTHER_KEY=another_value

# Comments start with #
QUOTED="value with spaces"
SINGLE_QUOTED='literal $value without expansion'

# Double-quoted values support escape sequences
ESCAPED="line1\nline2\ttabbed"

Supported escape sequences in double-quoted values: \", \\, \n, \t

License

GPL-3.0