File: cmd_subcmd1.go

package info (click to toggle)
golang-github-smira-commander 0.0~git20140515.f408b00-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, buster-backports
  • size: 116 kB
  • sloc: makefile: 3
file content (18 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package main

import (
	"github.com/gonuts/commander"
	"github.com/gonuts/flag"
)

var cmd_subcmd1 = &commander.Command{
	UsageLine: "subcmd1 <command>",
	Short:     "subcmd1 subcommand. does subcmd1 thingies",
	Subcommands: []*commander.Command{
		cmd_subcmd1_cmd1,
		cmd_subcmd1_cmd2,
	},
	Flag: *flag.NewFlagSet("my-cmd-subcmd1", flag.ExitOnError),
}

// EOF