Skip to main content

Galbi CLI

Project description

Galbi

Less important configuration management system.

Installation

Requires

Install

Recommend to use pipx to install command line interface in isolated environment.

$ pip install pipx
$ pipx install galbi

Initialize configuration

$ galbi init
GitHub repo: ...
Your GitHub personal access token: ...

Initialize galbi.

Migration

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.

How to deploy key?

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
...

How to get key?

$ 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

galbi-1.0.0.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

galbi-1.0.0-py2.py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page