MCPcopy Index your code
hub / github.com/rilldata/rill / DevtoolCmd

Function DevtoolCmd

cli/cmd/devtool/devtool.go:8–33  ·  view source on GitHub ↗
(ch *cmdutil.Helper)

Source from the content-addressed store, hash-verified

6)
7
8func DevtoolCmd(ch *cmdutil.Helper) *cobra.Command {
9 internalGroupID := ""
10 devtoolCmd := &cobra.Command{
11 Use: "devtool",
12 Short: "Utilities for developing Rill",
13 Example: ` rill devtool start cloud
14 rill devtool seed cloud
15 rill devtool start cloud --reset
16 rill devtool start cloud --except runtime
17 rill devtool start cloud --only admin,deps
18 rill devtool start local
19 rill devtool start local --reset
20 rill devtool switch-env stage
21 rill devtool dotenv upload cloud`,
22 Hidden: !ch.IsDev(),
23 GroupID: internalGroupID,
24 }
25
26 devtoolCmd.AddCommand(StartCmd(ch))
27 devtoolCmd.AddCommand(SeedCmd(ch))
28 devtoolCmd.AddCommand(DotenvCmd(ch))
29 devtoolCmd.AddCommand(SwitchEnvCmd(ch))
30 devtoolCmd.AddCommand(SubscriptionCmd(ch))
31
32 return devtoolCmd
33}

Callers 1

RootCmdFunction · 0.92

Calls 6

SeedCmdFunction · 0.85
DotenvCmdFunction · 0.85
SwitchEnvCmdFunction · 0.85
StartCmdFunction · 0.70
SubscriptionCmdFunction · 0.70
IsDevMethod · 0.45

Tested by

no test coverage detected