Open
Description
It would be a cool feature to have the ability to switch between config files in a muti-environment setup. An example is similar to how knife block might work.
Multiple config files inside ~/.st2 folder which are named however you need. Could be prefixed with something like st2client-config
. Filename might look something like ~/.st2/st2client-config-<env-name>.ini
. Then switching between the configs would just be doing a symlink like knife block does.
Switching configs e.g.
$ st2 config use <env-name>
> Now using <env-name>
Listing the configs e.g.
$ st2 config list
> The available StackStorm servers are
> <env-name> [ Currently Selected ]
> <env-name1>
> <env-name2>
> <env-name3>
There could even maybe be the option to create/edit them with the cli as well which would drop you into whatever configured editor is.
st2 config {create,edit} <env-name1>