INNER CODE UNIT · Go

main

pace/bricks · cmd/pb/main.go:15

func main() {
	rootCmd := &cobra.Command{
		Use:  "pb [command]",
		Args: cobra.MaximumNArgs(1),
	}
	addRootCommands(rootCmd)
	err := rootCmd.Execute()
	if err != nil {
		log.Fatal(err)
	}
}

// pace ...
func addRootCommands(rootCmd *cobra.Command) {
	var restSource string
	rootCmdNew := &cobra.Command{
		Use:  "new NAME",
		Args: cobra.ExactArgs(1),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…