Files
Gumble-Backend/scripts/cmd/handlers.go
Zane Walker 7e940c83a7
Some checks failed
Build & Test / build-test (push) Has been cancelled
Build & Test / swagger-codegen-cli (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
(Feat): Initial Commit
2026-07-03 19:41:31 +05:30

30 lines
555 B
Go

//go:build scripts
package cmd
import (
"os"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
)
// handlersCmd represents the handlers command
// see handlers_*.go for sub_commands
var handlersCmd = &cobra.Command{
Use: "handlers <subcommand>",
Short: "Handlers related subcommands",
Run: func(cmd *cobra.Command, _ []string /* args */) {
if err := cmd.Help(); err != nil {
log.Error().Err(err).Msg("Failed to print help")
os.Exit(1)
}
os.Exit(0)
},
}
//nolint:gochecknoinits
func init() {
rootCmd.AddCommand(handlersCmd)
}