mangar / gonfig

Get configuration from a private repository and apply to your project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gonfig

Get the config from a private repoository.

Simple

  • Get the code from git repo
  • Run: make and make install
  • type: gonfig install
    • this will create the ~/.gonfig dir and a basic config.json
  • 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

About

Get configuration from a private repository and apply to your project.

License:MIT License


Languages

Language:Go 93.2%Language:Makefile 6.8%