Skip to content

Commit 4eff20f

Browse files
committed
refactor: update command usage to remove 'projects' prefix for deployments and domains
1 parent 49c8f13 commit 4eff20f

13 files changed

Lines changed: 32 additions & 32 deletions

cmd/deployments/deployments_build_logs.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ func newDeploymentBuildLogsCommand() *cli.Command {
1616
ArgsUsage: "<project-id> <deployment-id>",
1717
Description: "Fetches the build logs for a deployment.\n\n" +
1818
" To find your deployment ID, run:\n" +
19-
" createos projects deployments list <project-id>",
19+
" createos deployments list <project-id>",
2020
Action: func(c *cli.Context) error {
2121
if c.NArg() < 2 {
22-
return fmt.Errorf("please provide a project ID and deployment ID\n\n Example:\n createos projects deployments build-logs <project-id> <deployment-id>")
22+
return fmt.Errorf("please provide a project ID and deployment ID\n\n Example:\n createos deployments build-logs <project-id> <deployment-id>")
2323
}
2424

2525
client, ok := c.App.Metadata[api.ClientKey].(*api.APIClient)
@@ -46,7 +46,7 @@ func newDeploymentBuildLogsCommand() *cli.Command {
4646

4747
fmt.Println()
4848
pterm.Println(pterm.Gray(" Tip: To see runtime logs, run:"))
49-
pterm.Println(pterm.Gray(" createos projects deployments logs " + projectID + " " + deploymentID))
49+
pterm.Println(pterm.Gray(" createos deployments logs " + projectID + " " + deploymentID))
5050
return nil
5151
},
5252
}

cmd/deployments/deployments_delete.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ func newDeploymentDeleteCommand() *cli.Command {
1616
ArgsUsage: "<project-id> <deployment-id>",
1717
Description: "Stops a deployment that is currently building or deploying.\n\n" +
1818
" To find your deployment ID, run:\n" +
19-
" createos projects deployments list <project-id>",
19+
" createos deployments list <project-id>",
2020
Action: func(c *cli.Context) error {
2121
if c.NArg() < 2 {
22-
return fmt.Errorf("please provide a project ID and deployment ID\n\n Example:\n createos projects deployments cancel <project-id> <deployment-id>")
22+
return fmt.Errorf("please provide a project ID and deployment ID\n\n Example:\n createos deployments cancel <project-id> <deployment-id>")
2323
}
2424

2525
client, ok := c.App.Metadata[api.ClientKey].(*api.APIClient)
@@ -50,7 +50,7 @@ func newDeploymentDeleteCommand() *cli.Command {
5050
pterm.Success.Println("Deployment has been cancelled.")
5151
fmt.Println()
5252
pterm.Println(pterm.Gray(" Tip: To see your deployments, run:"))
53-
pterm.Println(pterm.Gray(" createos projects deployments list " + projectID))
53+
pterm.Println(pterm.Gray(" createos deployments list " + projectID))
5454
return nil
5555
},
5656
}

cmd/deployments/deployments_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func newDeploymentsListCommand() *cli.Command {
5353
}
5454
fmt.Println()
5555
pterm.Println(pterm.Gray(" Tip: To see logs for a deployment, run:"))
56-
pterm.Println(pterm.Gray(" createos projects deployments logs " + projectID + " <deployment-id>"))
56+
pterm.Println(pterm.Gray(" createos deployments logs " + projectID + " <deployment-id>"))
5757
return nil
5858
},
5959
}

cmd/deployments/deployments_logs.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ func newDeploymentLogsCommand() *cli.Command {
1616
ArgsUsage: "<project-id> <deployment-id>",
1717
Description: "Fetches the latest logs for a running deployment.\n\n" +
1818
" To find your deployment ID, run:\n" +
19-
" createos projects deployments list <project-id>",
19+
" createos deployments list <project-id>",
2020
Action: func(c *cli.Context) error {
2121
if c.NArg() < 2 {
22-
return fmt.Errorf("please provide a project ID and deployment ID\n\n Example:\n createos projects deployments logs <project-id> <deployment-id>")
22+
return fmt.Errorf("please provide a project ID and deployment ID\n\n Example:\n createos deployments logs <project-id> <deployment-id>")
2323
}
2424

2525
client, ok := c.App.Metadata[api.ClientKey].(*api.APIClient)
@@ -43,7 +43,7 @@ func newDeploymentLogsCommand() *cli.Command {
4343
fmt.Println(logs)
4444
fmt.Println()
4545
pterm.Println(pterm.Gray(" Tip: To redeploy, run:"))
46-
pterm.Println(pterm.Gray(" createos projects deployments retrigger " + projectID + " " + deploymentID))
46+
pterm.Println(pterm.Gray(" createos deployments retrigger " + projectID + " " + deploymentID))
4747
return nil
4848
},
4949
}

cmd/deployments/deployments_retrigger.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ func newDeploymentRetriggerCommand() *cli.Command {
1616
ArgsUsage: "<project-id> <deployment-id>",
1717
Description: "Creates a new deployment based on an existing one.\n\n" +
1818
" To find your deployment ID, run:\n" +
19-
" createos projects deployments list <project-id>",
19+
" createos deployments list <project-id>",
2020
Action: func(c *cli.Context) error {
2121
if c.NArg() < 2 {
22-
return fmt.Errorf("please provide a project ID and deployment ID\n\n Example:\n createos projects deployments retrigger <project-id> <deployment-id>")
22+
return fmt.Errorf("please provide a project ID and deployment ID\n\n Example:\n createos deployments retrigger <project-id> <deployment-id>")
2323
}
2424

2525
client, ok := c.App.Metadata[api.ClientKey].(*api.APIClient)
@@ -37,7 +37,7 @@ func newDeploymentRetriggerCommand() *cli.Command {
3737
pterm.Success.Println("Deployment retriggered. A new deployment is now being built.")
3838
fmt.Println()
3939
pterm.Println(pterm.Gray(" Tip: To check the status of your deployments, run:"))
40-
pterm.Println(pterm.Gray(" createos projects deployments list " + projectID))
40+
pterm.Println(pterm.Gray(" createos deployments list " + projectID))
4141
return nil
4242
},
4343
}

cmd/deployments/deployments_wakeup.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ func newDeploymentWakeupCommand() *cli.Command {
1616
ArgsUsage: "<project-id> <deployment-id>",
1717
Description: "Resumes a deployment that is currently sleeping.\n\n" +
1818
" To find your deployment ID, run:\n" +
19-
" createos projects deployments list <project-id>",
19+
" createos deployments list <project-id>",
2020
Action: func(c *cli.Context) error {
2121
if c.NArg() < 2 {
22-
return fmt.Errorf("please provide a project ID and deployment ID\n\n Example:\n createos projects deployments wakeup <project-id> <deployment-id>")
22+
return fmt.Errorf("please provide a project ID and deployment ID\n\n Example:\n createos deployments wakeup <project-id> <deployment-id>")
2323
}
2424

2525
client, ok := c.App.Metadata[api.ClientKey].(*api.APIClient)
@@ -37,7 +37,7 @@ func newDeploymentWakeupCommand() *cli.Command {
3737
pterm.Success.Println("Your deployment is waking up.")
3838
fmt.Println()
3939
pterm.Println(pterm.Gray(" Tip: To check the status of your deployments, run:"))
40-
pterm.Println(pterm.Gray(" createos projects deployments list " + projectID))
40+
pterm.Println(pterm.Gray(" createos deployments list " + projectID))
4141
return nil
4242
},
4343
}

cmd/domains/domains_add.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ func newDomainsAddCommand() *cli.Command {
1616
ArgsUsage: "<project-id> <domain>",
1717
Description: "Adds a custom domain to your project.\n\n" +
1818
" After adding, point your DNS to the provided records, then run:\n" +
19-
" createos projects domains refresh <project-id> <domain-id>",
19+
" createos domains refresh <project-id> <domain-id>",
2020
Action: func(c *cli.Context) error {
2121
if c.NArg() < 2 {
22-
return fmt.Errorf("please provide a project ID and domain name\n\n Example:\n createos projects domains add <project-id> myapp.com")
22+
return fmt.Errorf("please provide a project ID and domain name\n\n Example:\n createos domains add <project-id> myapp.com")
2323
}
2424

2525
client, ok := c.App.Metadata[api.ClientKey].(*api.APIClient)
@@ -38,7 +38,7 @@ func newDomainsAddCommand() *cli.Command {
3838
pterm.Success.Printf("Domain %q added successfully.\n", name)
3939
fmt.Println()
4040
pterm.Println(pterm.Gray(" Next step: point your DNS records to CreateOS, then verify with:"))
41-
pterm.Println(pterm.Gray(" createos projects domains refresh " + projectID + " " + id))
41+
pterm.Println(pterm.Gray(" createos domains refresh " + projectID + " " + id))
4242
return nil
4343
},
4444
}

cmd/domains/domains_delete.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ func newDomainsDeleteCommand() *cli.Command {
1616
ArgsUsage: "<project-id> <domain-id>",
1717
Description: "Permanently removes a custom domain from your project.\n\n" +
1818
" To find your domain ID, run:\n" +
19-
" createos projects domains list <project-id>",
19+
" createos domains list <project-id>",
2020
Action: func(c *cli.Context) error {
2121
if c.NArg() < 2 {
22-
return fmt.Errorf("please provide a project ID and domain ID\n\n Example:\n createos projects domains delete <project-id> <domain-id>")
22+
return fmt.Errorf("please provide a project ID and domain ID\n\n Example:\n createos domains delete <project-id> <domain-id>")
2323
}
2424

2525
client, ok := c.App.Metadata[api.ClientKey].(*api.APIClient)
@@ -50,7 +50,7 @@ func newDomainsDeleteCommand() *cli.Command {
5050
pterm.Success.Println("Domain is being removed.")
5151
fmt.Println()
5252
pterm.Println(pterm.Gray(" Tip: To see your remaining domains, run:"))
53-
pterm.Println(pterm.Gray(" createos projects domains list " + projectID))
53+
pterm.Println(pterm.Gray(" createos domains list " + projectID))
5454
return nil
5555
},
5656
}

cmd/domains/domains_list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func newDomainsListCommand() *cli.Command {
3434
fmt.Println("No custom domains added yet.")
3535
fmt.Println()
3636
pterm.Println(pterm.Gray(" Tip: To add a domain, run:"))
37-
pterm.Println(pterm.Gray(" createos projects domains add " + projectID + " <your-domain.com>"))
37+
pterm.Println(pterm.Gray(" createos domains add " + projectID + " <your-domain.com>"))
3838
return nil
3939
}
4040

@@ -54,7 +54,7 @@ func newDomainsListCommand() *cli.Command {
5454
}
5555
fmt.Println()
5656
pterm.Println(pterm.Gray(" Tip: To add a new domain, run:"))
57-
pterm.Println(pterm.Gray(" createos projects domains add " + projectID + " <your-domain.com>"))
57+
pterm.Println(pterm.Gray(" createos domains add " + projectID + " <your-domain.com>"))
5858
return nil
5959
},
6060
}

cmd/domains/domains_refresh.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ func newDomainsRefreshCommand() *cli.Command {
1616
ArgsUsage: "<project-id> <domain-id>",
1717
Description: "Triggers a DNS verification and certificate refresh for your domain.\n\n" +
1818
" To find your domain ID, run:\n" +
19-
" createos projects domains list <project-id>",
19+
" createos domains list <project-id>",
2020
Action: func(c *cli.Context) error {
2121
if c.NArg() < 2 {
22-
return fmt.Errorf("please provide a project ID and domain ID\n\n Example:\n createos projects domains refresh <project-id> <domain-id>")
22+
return fmt.Errorf("please provide a project ID and domain ID\n\n Example:\n createos domains refresh <project-id> <domain-id>")
2323
}
2424

2525
client, ok := c.App.Metadata[api.ClientKey].(*api.APIClient)
@@ -37,7 +37,7 @@ func newDomainsRefreshCommand() *cli.Command {
3737
pterm.Success.Println("Domain refresh started. This may take a few minutes.")
3838
fmt.Println()
3939
pterm.Println(pterm.Gray(" Tip: To check the domain status, run:"))
40-
pterm.Println(pterm.Gray(" createos projects domains list " + projectID))
40+
pterm.Println(pterm.Gray(" createos domains list " + projectID))
4141
return nil
4242
},
4343
}

0 commit comments

Comments
 (0)