Skip to content

Commit 933109e

Browse files
committed
parsing down to just the list cmd for now
1 parent c0b11c5 commit 933109e

8 files changed

Lines changed: 5 additions & 454 deletions

File tree

cmd/app/delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func newDeleteLogger(clients *shared.ClientFactory, cmd *cobra.Command, envName
128128
func confirmDeletion(ctx context.Context, IO iostreams.IOStreamer, app prompts.SelectedApp) (bool, error) {
129129
IO.PrintInfo(ctx, false, "\n%s", style.Sectionf(style.TextSection{
130130
Emoji: "warning",
131-
Text: style.Bold(" Danger zone"),
131+
Text: style.Bold("Danger zone"),
132132
Secondary: []string{
133133
fmt.Sprintf("App (%s) will be permanently deleted", app.App.AppID),
134134
"All triggers, workflows, and functions will be deleted",

cmd/sandbox/create.go

Lines changed: 0 additions & 209 deletions
This file was deleted.

cmd/sandbox/delete.go

Lines changed: 0 additions & 114 deletions
This file was deleted.

cmd/sandbox/sandbox.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525
func NewCommand(clients *shared.ClientFactory) *cobra.Command {
2626
cmd := &cobra.Command{
2727
Use: "sandbox <subcommand> [flags] --experiment=sandboxes",
28-
Short: "Create and manage your sandboxes",
29-
Long: `Create, list, or delete Slack developer sandboxes without leaving your terminal.
28+
Short: "Manage your sandboxes",
29+
Long: `Manage your Slack developer sandboxes without leaving your terminal.
3030
Use the --team flag to select the authentication to use for these commands.
3131
3232
Prefer a UI? Head over to https://api.slack.com/developer-program/sandboxes
@@ -41,9 +41,7 @@ New to the Developer Program? Sign up at https://api.slack.com/developer-program
4141
},
4242
}
4343

44-
cmd.AddCommand(NewCreateCommand(clients))
4544
cmd.AddCommand(NewListCommand(clients))
46-
cmd.AddCommand(NewDeleteCommand(clients))
4745

4846
return cmd
4947
}

internal/api/api_mock.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -215,21 +215,11 @@ func (m *APIMock) FunctionDistributionRemoveUsers(ctx context.Context, callbackI
215215

216216
// SandboxClient
217217

218-
func (m *APIMock) CreateSandbox(ctx context.Context, token string, orgName, domain, password, locale, owningOrgID, templateID, eventCode string, archiveDate int64) (types.CreateSandboxResult, error) {
219-
args := m.Called(ctx, token, orgName, domain, password, locale, owningOrgID, templateID, eventCode, archiveDate)
220-
return args.Get(0).(types.CreateSandboxResult), args.Error(1)
221-
}
222-
223218
func (m *APIMock) ListSandboxes(ctx context.Context, token string, filter string) ([]types.Sandbox, error) {
224219
args := m.Called(ctx, token, filter)
225220
return args.Get(0).([]types.Sandbox), args.Error(1)
226221
}
227222

228-
func (m *APIMock) DeleteSandbox(ctx context.Context, token string, sandboxTeamID string) error {
229-
args := m.Called(ctx, token, sandboxTeamID)
230-
return args.Error(0)
231-
}
232-
233223
// DatastoresClient
234224

235225
func (m *APIMock) AppsDatastorePut(ctx context.Context, token string, request types.AppDatastorePut) (types.AppDatastorePutResult, error) {

0 commit comments

Comments
 (0)