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

Function ProjectCmd

cli/cmd/project/project.go:13–40  ·  view source on GitHub ↗
(ch *cmdutil.Helper)

Source from the content-addressed store, hash-verified

11)
12
13func ProjectCmd(ch *cmdutil.Helper) *cobra.Command {
14 projectCmd := &cobra.Command{
15 Use: "project",
16 Short: "Manage projects",
17 PersistentPreRunE: cmdutil.CheckChain(cmdutil.CheckAuth(ch), cmdutil.CheckOrganization(ch)),
18 }
19
20 projectCmd.PersistentFlags().StringVar(&ch.Org, "org", ch.Org, "Organization Name")
21 projectCmd.AddCommand(ListCmd(ch))
22 projectCmd.AddCommand(ShowCmd(ch))
23 projectCmd.AddCommand(EditCmd(ch))
24 projectCmd.AddCommand(RenameCmd(ch))
25 projectCmd.AddCommand(HibernateCmd(ch))
26 projectCmd.AddCommand(DeleteCmd(ch))
27 projectCmd.AddCommand(StatusCmd(ch))
28 projectCmd.AddCommand(PartitionsCmd(ch))
29 projectCmd.AddCommand(LogsCmd(ch))
30 projectCmd.AddCommand(DescribeCmd(ch))
31 projectCmd.AddCommand(RefreshCmd(ch))
32 projectCmd.AddCommand(JwtCmd(ch))
33 projectCmd.AddCommand(CloneCmd(ch))
34 projectCmd.AddCommand(GitPushCmd(ch))
35 projectCmd.AddCommand(DeployCmd(ch))
36 projectCmd.AddCommand(TablesCmd(ch))
37 projectCmd.AddCommand(deployment.DeploymentCmd(ch))
38
39 return projectCmd
40}
41
42func ProjectNames(ctx context.Context, ch *cmdutil.Helper) ([]string, error) {
43 c, err := ch.Client()

Callers 1

RootCmdFunction · 0.92

Calls 15

CheckChainFunction · 0.92
CheckAuthFunction · 0.92
CheckOrganizationFunction · 0.92
DeploymentCmdFunction · 0.92
StatusCmdFunction · 0.85
PartitionsCmdFunction · 0.85
LogsCmdFunction · 0.85
DescribeCmdFunction · 0.85
RefreshCmdFunction · 0.85
JwtCmdFunction · 0.85
CloneCmdFunction · 0.85
GitPushCmdFunction · 0.85

Tested by

no test coverage detected