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.
z/cmd.go

27 lines
721 B
Go

package z
import (
"github.com/rwxrob/greet"
"github.com/spf13/cobra"
)
var Cmd = &cobra.Command{
Use: "z",
Short: "A brief description of your application",
Long: `A longer description that spans multiple lines and likely contains
examples and usage of using your application. For example:
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
// Uncomment the following line if your bare application
// has an action associated with it:
// Run: func(cmd *cobra.Command, args []string) { },
}
func init() {
Cmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
Cmd.AddCommand(greet.Cmd)
}