INNER CODE UNIT · Go

init

beego/bee · cmd/commands/dev/cmd.go:33

func init() {
	commands.AvailableCommands = append(commands.AvailableCommands, CmdDev)
}

func Run(cmd *commands.Command, args []string) int {
	if len(args) < 1 {
		beeLogger.Log.Fatal("Command is missing")
	}

	if len(args) >= 2 {
		cmd.Flag.Parse(args[1:])
	}

	gcmd := args[0]

	switch gcmd {

	case "githook":

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…