gitlin/cmd/gothub/root.go

25 行
467 B
Go

package gothub
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "gothub",
Short: "An alternative front-end for GitHub.",
Long: `An alternative front-end for GitHub, maintained by Odyssey346, Midou36O and Arya.`,
Run: func(cmd *cobra.Command, args []string) {
cmd.Help()
},
}
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Fprintf(os.Stderr, "Error running GotHub's CLI: %v", err)
os.Exit(1)
}
}