PierreBeucher / novops

Cross-platform secret & config manager for development and CI environments
https://novops.dev
GNU Lesser General Public License v3.0
308 stars 14 forks source link

add `novops list` that list available environments #61

Closed teto closed 9 months ago

teto commented 1 year ago

so that thay cab be piped into fzf such that novops list | fzf | novops load -e {fzf_result}

PierreBeucher commented 9 months ago

Solved by https://github.com/PierreBeucher/novops/pull/79

You'll be able to use novops list environments and novops list environments ;) Or in JSON like novops list environments -o json

teto commented 1 month ago

novops list has no description (in 0.15) which is sad :'(

sh-5.2# novops --help
Cross-plaform secret loader

Usage: novops [COMMAND]

Commands:
  load        Load a Novops environment. Output resulting environment variables to stdout or to a file using -s/--symlink. 
  run         Run a command with loaded environment variables and files.
  list        
  completion  Output completion code for various shells.
  schema      Output Novops config JSON schema
  help        Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version
PierreBeucher commented 1 month ago

Ah indeed, there are description for sub-commands list outputs and list environments though not the main one. Easy fix will come, thanks for the heads-up