Less important configuration management system.
- Python 3.6 +
- GitHub personal access token: https://github.com/settings/tokens
Recommend to use pipx to install command line interface in isolated environment.
$ pip install pipx
$ pipx install galbi
$ galbi init
GitHub repo: ...
Your GitHub personal access token: ...
Initialize galbi.
In galbi 1.0, we changes a way to store a configuration. Before 1.0, galbi get a latest comment of issue to get body. But from galbi 1.0, It stores data in body of issue.
So If you use galbi under 1.0 version, You need to migrate your configuration.
$ galbi migrate
Are you sure you want to migrate galbi 0.2 to 1.0? [y/N]:
migrate
command help you to migrate configurations.
It uploads JSON to reposotory's issue.
$ galbi deploy something.json
...
JSON key should be a title and label of issue.
JSON value stored in body of the issue, and leaves a comment of the issue as well. If someone deploy the same JSON key, value pair, It updates a body and comment again.
Issue's comment is change log of configuration.
For deploying a single configuration, It supports deploy-key
command.
$ galbi deploy-key -k foo -v bar
...
$ galbi get --key foo --key bar
{
"foo": ...,
"bar": ...,
}
To get specific changes of configuration, you can use get-rev
command.
$ galbi get-rev -k foo -r 0
...
Note that galbi only get a configuration from an opened issue. If you want to deprecate/remove the configuration, close the issue.