brokeyourbike/microcart

View on GitHub
app/tooling/cli/commands/root.go

Summary

Maintainability
A
0 mins
Test Coverage
package commands

import (
    "fmt"
    "os"

    "github.com/spf13/cobra"
)

var rootCmd = &cobra.Command{
    Use:   "microcart-cli",
    Short: "Helpful CLI commands to manage the MicroCart.",
}

func Execute() {
    if err := rootCmd.Execute(); err != nil {
        fmt.Fprintln(os.Stderr, err)
        os.Exit(1)
    }
}