migrationcli

command
v0.0.0-...-ed4ef5d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 5 Imported by: 0

README

GO Feature Flag Migration cli

The migration command line purpose is to migrate your configuration file from the flag format in version v0.x.x to the format v1.x.x.

We changed the format to extend the capabilities of GO Feature Flag, despite that the old format will still be supported, it is better to update your configuration file.

How to install the cli

Install using Homebrew (mac and linux)
brew tap thomaspoignant/homebrew-tap
brew install go-feature-flag-migration-cli
Install using Scoop (windows)
scoop bucket add org https://github.com/thomaspoignant/scoop.git
scoop install go-feature-flag-migration-cli
Install using docker
docker pull thomaspoignant/go-feature-flag-migration-cli

More information about the usage of the container in the dockerhub page.

How to use the cli

# example:
go-feature-flag-migration-cli --input-format=yaml --input-file=/input/my-go-feature-flag-config-v0.x.x.yaml --output-format=yaml --output-file=input/my-go-feature-flag-config-v1.x.x.yaml

The command line has 4 parameters:

param description
--input-file (mandatory) The location of your configuration file in version v0.x.x.
--input-format (mandatory) The format of your current configuration file.
Available formats are yaml, json, toml.
--output-file (optional) The location where the new configuration file will be stored in version v1.x.x.
If omitted the configuration will be output in the console.
--output-format (optional) The target format of the configuration.
Available formats are yaml, json, toml.
If omitted yaml will be used.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL