st2client config manager
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 6.5k
- Forks
- 787
- PR merge metrics
- No merged PRs in 30d
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>
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the existing st2 config CLI entry point and inspect how configuration is loaded from ~/.st2. Define how named environment files, the selected configuration, and config use and config list should interact before implementing; treat config create and config edit as optional scope. Done means users can switch among named configurations and list the available one with the current selection shown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100