You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lntop/cli/cli.go

26 lines
421 B
Go

package cli
import (
cli "gopkg.in/urfave/cli.v2"
)
// New creates a new cli app.
func New() *cli.App {
cli.VersionFlag = &cli.BoolFlag{
Name: "version", Aliases: []string{},
Usage: "print the version",
}
return &cli.App{
Name: "lntop",
EnableShellCompletion: true,
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "v",
Usage: "verbose",
},
},
Commands: []*cli.Command{},
}
}