Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Latest commit

 

History

History
69 lines (54 loc) · 1.81 KB

USAGE.md

File metadata and controls

69 lines (54 loc) · 1.81 KB

USAGE

$ gencfg help
NAME:
   gencfg - generate code for the application specific configuration

USAGE:
   commands [global options] command [command options] [arguments...]

VERSION:
   0.2.2

AUTHOR:
   suzuki-shunsuke https://github.com/suzuki-shunsuke

COMMANDS:
     init     generate a configuration file voilerplate
     gen      generate code
     compare  compare existing code with one which will be generated by gen command
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version
$ gencfg help init
NAME:
   commands init - generate a configuration file voilerplate

USAGE:
   commands init [command options] [arguments...]

OPTIONS:
   --config value, -c value    generated configuration file path (default: ".gencfg.yml")
   --template value, -t value  generated template file path (default: ".gencfg_config.tmpl")
$ gencfg help gen 
NAME:
   commands gen - generate code

USAGE:
   commands gen [command options] [arguments...]

OPTIONS:
   --config value, -c value       configuration file path (default: ".gencfg.yml")
   --dest value, -d value      generated file path (default: "config/config.go")
   --template value, -t value  template file path
$ gencfg help compare
NAME:
   commands compare - compare existing code with one which will be generated by gen command

USAGE:
   commands compare [command options] [arguments...]

OPTIONS:
   --config value, -c value       configuration file path (default: ".gencfg.yml")
   --dest value, -d value      generated file path (default: "config/config.go")
   --template value, -t value  template file path
   --failure, -f               exit with non 0 if diff exists
   --quiet, -q                 diff is not shown. --failure option is enabled automatically