Skip to content

Commit f23e6d3

Browse files
authored
revert(experiment): separate create questions with flag parsings (#401)
1 parent 02aae5f commit f23e6d3

File tree

4 files changed

+0
-442
lines changed

4 files changed

+0
-442
lines changed

cmd/project/create_template.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"time"
2222

2323
"github.com/slackapi/slack-cli/internal/api"
24-
"github.com/slackapi/slack-cli/internal/experiment"
2524
"github.com/slackapi/slack-cli/internal/iostreams"
2625
"github.com/slackapi/slack-cli/internal/pkg/create"
2726
"github.com/slackapi/slack-cli/internal/shared"
@@ -107,16 +106,6 @@ func promptTemplateSelection(cmd *cobra.Command, clients *shared.ClientFactory,
107106
// Check if a category shortcut was provided
108107
if categoryShortcut == "agent" {
109108
categoryID = "slack-cli#ai-apps"
110-
} else if clients.Config.WithExperimentOn(experiment.Charm) {
111-
result, err := charmPromptTemplateSelection(ctx, clients)
112-
if err != nil {
113-
return create.Template{}, slackerror.ToSlackError(err)
114-
}
115-
if result.CategoryID == viewMoreSamples || result.TemplateRepo == viewMoreSamples {
116-
selectedTemplate = viewMoreSamples
117-
} else {
118-
selectedTemplate = result.TemplateRepo
119-
}
120109
} else {
121110
// Prompt for the category
122111
promptForCategory := "Select an app:"

cmd/project/create_template_charm.go

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

cmd/project/create_template_charm_test.go

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

0 commit comments

Comments
 (0)