//...
cmd := &cmd.Command{
Name: "<command>",
Synopsis: "<synopsis>",
HelpText: "<help>",
Flags: func(f *flag.FlagSet) {
f.BoolVar(&opts.enabled, "enabled", false, "...")
},
Arguments: cmd.Arguments{
Args: []cmd.Argument{
{
Name: "<arg-name>",
Description: "<arg-description>",
},
},
Validate: cmd.ExactArgs(1),
},
Run: func(c *cmd.Command, args []string) error {
//...
},
}
-
Notifications
You must be signed in to change notification settings - Fork 0
mjyocca/go-cli
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Starting template repository to build a CLI applicaton in Go/Golang
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published