main
Raw Download raw file
 1package cmd
 2
 3import (
 4	"os"
 5
 6	"github.com/spf13/cobra"
 7)
 8
 9func Execute() {
10	err := NewRootCmd().Execute()
11	if err != nil {
12		os.Exit(1)
13	}
14}
15
16func NewRootCmd() *cobra.Command {
17
18	var cmd = &cobra.Command{
19		Use:   "tissue",
20		Short: "terminal issues",
21		Long:  `<long description>`,
22		RunE:  rootRunE,
23	}
24
25	// flags
26	// cmd.PersistentFlags()
27
28	// subcommands
29	cmd.AddCommand(NewInitCmd())
30
31	return cmd
32}
33
34func rootRunE(cmd *cobra.Command, args []string) error {
35	return nil
36}