MCPcopy Create free account
hub / github.com/rilldata/rill / AdminCmd

Function AdminCmd

cli/cmd/admin/admin.go:9–24  ·  view source on GitHub ↗

AdminCmd represents the admin command

(ch *cmdutil.Helper)

Source from the content-addressed store, hash-verified

7
8// AdminCmd represents the admin command
9func AdminCmd(ch *cmdutil.Helper) *cobra.Command {
10 internalGroupID := ""
11 adminCmd := &cobra.Command{
12 Use: "admin",
13 Hidden: !ch.IsDev(),
14 Short: "Manage an admin server",
15 GroupID: internalGroupID,
16 }
17
18 adminCmd.AddCommand(MigrateCmd(ch))
19 adminCmd.AddCommand(PingCmd(ch))
20 adminCmd.AddCommand(StartCmd(ch))
21 adminCmd.AddCommand(SwitchCmd(ch))
22
23 return adminCmd
24}

Callers 1

RootCmdFunction · 0.92

Calls 5

MigrateCmdFunction · 0.85
PingCmdFunction · 0.70
StartCmdFunction · 0.70
SwitchCmdFunction · 0.70
IsDevMethod · 0.45

Tested by

no test coverage detected