Compare commits
1 Commits
67e8485958
...
0219bbc5fb
Author | SHA1 | Date |
---|---|---|
Philippe Caseiro | 0219bbc5fb |
|
@ -25,12 +25,12 @@ func Daemon(port int) (err error) {
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
var args struct {
|
var args struct {
|
||||||
Daemon bool `arg:"-d,--daemon,env:TEMPLATER_DAEMON" default:"false" help:"Enable api server"`
|
Daemon bool `arg:"-d,--daemon,env:TEMPLATER_DAEMON" default:"false"`
|
||||||
Port int `arg:"-p,--port,env:TEMPLATER_PORT" default:"8080" help:"Listening port for the api server"`
|
Port int `arg:"-p,--port,env:TEMPLATER_PORT" default:"8080"`
|
||||||
Type string `arg:"-t,--type,env:TEMPLATE_TYPE" default:"hcl" help:"Template type (go/template or hcl)"`
|
Type string `arg:"-t,--type,env:TEMPLATE_TYPE" default:"hcl"`
|
||||||
Output string `arg:"-o,--output,env:TEMPLATER_OUTPUT" default:"stdout" help:"Destination of the result (stdout or file path)"`
|
File string `arg:"-f,--template-file,env:TEMPLATE_FILE"`
|
||||||
Config string `arg:"-c,--config,env:TEMPLATE_CONFIG" help:"Configuration values"`
|
Output string `arg:"-o,--output,env:TEMPLATER_OUTPUT" default:"stdout"`
|
||||||
File string `arg:"-f,--template-file,env:TEMPLATE_FILE" help:"Template file path"`
|
Config string `arg:"-c,--config,env:TEMPLATE_CONFIG"`
|
||||||
}
|
}
|
||||||
|
|
||||||
arg.MustParse(&args)
|
arg.MustParse(&args)
|
||||||
|
|
Loading…
Reference in New Issue