ADD: added basic backend function plus a mockup for a cli interface
This commit is contained in:
25
backend/cmd/cli/root/root.go
Normal file
25
backend/cmd/cli/root/root.go
Normal file
@@ -0,0 +1,25 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user