Skip to content

Commit 047c85f

Browse files
authored
Merge branch 'main' into zimeg-feat-dotenv-set-unset-alias
2 parents 83e2b2f + c7106d2 commit 047c85f

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

cmd/app/app.go

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
func NewCommand(clients *shared.ClientFactory) *cobra.Command {
2626
cmd := &cobra.Command{
2727
Use: "app",
28-
Aliases: []string{"workspace", "app", "apps", "team", "teams", "workspaces"},
28+
Aliases: []string{"app", "apps"},
2929
Short: "Install, uninstall, and list teams with the app installed",
3030
Long: "Install, uninstall, and list teams with the app installed",
3131
Example: style.ExampleCommandsf([]style.ExampleCommand{
@@ -45,20 +45,6 @@ func NewCommand(clients *shared.ClientFactory) *cobra.Command {
4545
RunE: func(cmd *cobra.Command, args []string) error {
4646
return runListCommand(cmd, clients)
4747
},
48-
PostRunE: func(cmd *cobra.Command, args []string) error {
49-
ctx := cmd.Context()
50-
// DEPRECATED(semver:major): remove the "workspace" alias
51-
if cmd.CalledAs() == "workspace" {
52-
clients.IO.PrintInfo(ctx, false,
53-
"\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 ",
54-
style.Emoji("bulb"),
55-
style.Commandf("workspace", true),
56-
style.Commandf("app", true),
57-
style.Commandf("workspace", true),
58-
)
59-
}
60-
return nil
61-
},
6248
}
6349

6450
// Add child commands

cmd/app/app_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/stretchr/testify/assert"
2525
)
2626

27-
func TestWorkspaceCommand(t *testing.T) {
27+
func TestAppCommand(t *testing.T) {
2828
// Create mocks
2929
ctx := slackcontext.MockContext(t.Context())
3030
clientsMock := shared.NewClientsMock()

0 commit comments

Comments
 (0)