Gonfig
Get the config from a private repoository.
Simple
- Get the code from git repo
- Run:
make
andmake install
- type:
gonfig install
- this will create the
~/.gonfig
dir and a basicconfig.json
- this will create the
- Enjoy
Any question, type: gonfig help
Usage
go run main.go projectDemo ../output microservices/all/development microservices/users/development
Making
make
make install
Extra packages
go get gopkg.in/kyokomi/emoji.v1
Debug mode
First export a ENV variable: export FlagDebug=true
and then run the program
Configuration
1
You can create a config.yml file located at: ~/.gonfig/config.json
and put the and complete that with:
[
{
"project":"ProjectName",
"repo" : "https://USERNAME:APP_PASSWORD@bitbucket.org/REPOSITORY_NAME.git"
}
]
2
Use the same file structure and specify when calling the command.
License
Copyright © 2017 Marcio Mangar. MIT License