Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list saved namespaces #17

Open
stumyp opened this issue Dec 6, 2017 · 3 comments
Open

list saved namespaces #17

stumyp opened this issue Dec 6, 2017 · 3 comments

Comments

@stumyp
Copy link

stumyp commented Dec 6, 2017

Is it possible to add listing to the app?
I'm using it every day and have no knowledge of C/C++.
There are times I forget saved name of the namespace and need to restore it somehow...

Thanks

@sorah
Copy link
Owner

sorah commented Dec 12, 2017

I don't have a certain plan for adding --list right now. Pull requests are welcomed.

I personally use seahorse on Linux, Keychain Access on Mac to list secrets.

@stumyp
Copy link
Author

stumyp commented Dec 12, 2017

seahorse helps, but not much, as it doesn't show the names of saved environments in the list, only in details of each item, which is quite inconvenient once I have multiple namespaces with the same variable names.

@rogeruiz
Copy link

It would be great to have some sort of list of environment names stored somewhere. For the time being, I'm manually maintaining the list myself in a config file that I reference in a function/alias.

Code snippet of a bash function
chooseEnv() {
  # Manually adding envs here as I `envchain --set` them because envchain
  # doesn't have a `--list` or `ls` command.
  # See: https://github.com/sorah/envchain/issues/17
  select env_name in $(< ~/.config/envchain/list.env)
  do
    if [[ $env_name == "" ]]
    then
      echo "Please choose from the available environments!"
      continue
    fi
    envchain ${env_name} zsh
    break
  done
}

alias whichenv=chooseEnv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants