gitlin/cmd/gothub/root.go
Odyssey346 b6fa0d6c11 I don't agree with this cmd description
Signed-off-by: Odyssey346 <hi@odyssey346.dev>
2023-04-01 17:20:32 +02:00

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)
}
}