Files
Studia/backend/cmd/cli/root/root.go

26 lines
314 B
Go

package root
import (
"fmt"
"os"
"studia/cmd/cli/user"
"github.com/spf13/cobra"
)
var RootCmd = &cobra.Command{
Use: "myapp",
Short: "MyApp admin CLI",
}
func Execute() {
if err := RootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}
func init() {
RootCmd.AddCommand(user.UserCmd)
}