Skip to content

iyuuya/envet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

envet

Installation

go install github.com/ysugimoto/envet/cmd/envet@latest

Usage

$ envet
envet is a tool to manage environment variables stored in the system keychain.

Usage:
  envet [command]

Available Commands:
  add              add a new environment variable
  completion       Generate the autocompletion script for the specified shell
  export           print export environment variables
  help             Help about any command
  list-keys        list keys in a namespace
  list-namespaces  list all namespaces
  remove           remove an environment variable
  remove-namespace remove a namespace
  run              run command with environment variables
  unset            print unset environment variables

Flags:
  -h, --help   help for envet

Use "envet [command] --help" for more information about a command.

Completion

eval "$(envet completion zsh)"  # for zsh

see also: envet completion

supports: bash, zsh, fish, powershell (cobra generated)

Integration Example

fzf

envet export $(envet lsn | fzf --preview 'envet lsk {}')

mise

# mise.toml
[hooks.enter]
shell = "zsh"
script = """
eval "$(envet export hello-ns)"
"""

[hooks.leave]
shell = "zsh"
script = """
eval "$(envet unset hello-ns)"
"""

direnv

# .envrc
direnv_load envet run aws-retrip direnv dump

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published