Skip to content

Commit 4485405

Browse files
zimegmwbrooks
andauthored
fix: include the top level app command with sub commands in help page examples (#93)
Co-authored-by: Michael Brooks <[email protected]>
1 parent 29d536b commit 4485405

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

cmd/app/app.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ func NewCommand(clients *shared.ClientFactory) *cobra.Command {
3131
Short: "Install, uninstall, and list teams with the app installed",
3232
Long: "Install, uninstall, and list teams with the app installed",
3333
Example: style.ExampleCommandsf([]style.ExampleCommand{
34-
{Command: "install", Meaning: "Install a production app to a team"},
35-
{Command: "link", Meaning: "Link an existing app to the project"},
36-
{Command: "list", Meaning: "List all teams with the app installed"},
37-
{Command: "uninstall", Meaning: "Uninstall an app from a team"},
38-
{Command: "delete", Meaning: "Delete an app and app info from a team"},
34+
{Command: "app install", Meaning: "Install a production app to a team"},
35+
{Command: "app link", Meaning: "Link an existing app to the project"},
36+
{Command: "app list", Meaning: "List all teams with the app installed"},
37+
{Command: "app uninstall", Meaning: "Uninstall an app from a team"},
38+
{Command: "app delete", Meaning: "Delete an app and app info from a team"},
3939
}),
4040
Args: cobra.NoArgs,
4141
PreRunE: func(cmd *cobra.Command, args []string) error {
@@ -47,6 +47,7 @@ func NewCommand(clients *shared.ClientFactory) *cobra.Command {
4747
},
4848
PostRunE: func(cmd *cobra.Command, args []string) error {
4949
ctx := cmd.Context()
50+
// DEPRECATED(semver:major): remove the "workspace" alias
5051
if cmd.CalledAs() == "workspace" {
5152
clients.IO.PrintInfo(ctx, false, fmt.Sprintf(
5253
"\n%s It looks like you used %s. This command will be deprecated in an upcoming release.\n You can now use %s instead of %s.\n ",

0 commit comments

Comments
 (0)