cookiecutter-golang/{{cookiecutter.project_slug}}/cmd/{{cookiecutter.project_slug}}.go
2023-09-05 16:44:53 +02:00

20 lines
382 B
Go

package main
import (
{{cookiecutter.mod_name}} "{{cookiecutter.mod_base}}/internal"
"github.com/alexflint/go-arg"
)
type args struct {
Parameter string `arg:"--parameter,required,env:PARAMETER" placeholder:"PARAMETER"`
}
func main() {
var args args
arg.MustParse(&args)
{{cookiecutter.mod_name}}.Start({{cookiecutter.mod_name}}.Config{
Parameter: args.Parameter,
})
}