lolibrary/lolibrary

View on GitHub
cmd/generate/cmd/root.go

Summary

Maintainability
A
0 mins
Test Coverage
package cmd

import (
    "fmt"
    "os"

    "github.com/spf13/cobra"
)

var rootCmd = &cobra.Command{
    Use:   "generate",
    Short: "Generate is a scaffolding command to create a new microservice.",
}

func init() {
    rootCmd.AddCommand(serviceCmd)
}

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