Skip to content

Commit cc1ce45

Browse files
authored
Merge branch 'main' into zimeg-fix-env-quote
2 parents 5b2cf70 + e1bebf8 commit cc1ce45

25 files changed

Lines changed: 852 additions & 203 deletions

.claude/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"permissions": {
33
"allow": [
4+
"Bash(go build:*)",
45
"Bash(go mod tidy:*)",
6+
"Bash(go test:*)",
57
"Bash(gofmt:*)",
68
"Bash(gh issue view:*)",
79
"Bash(gh label list:*)",
@@ -28,5 +30,8 @@
2830
"WebFetch(domain:github.com)",
2931
"WebFetch(domain:docs.slack.dev)"
3032
]
33+
},
34+
"enabledPlugins": {
35+
"gopls-lsp@claude-plugins-official": true
3136
}
3237
}

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ environments.yaml
1919
# macOS
2020
.DS_Store
2121

22-
# For GoLand users
22+
# Git
23+
.worktrees/
24+
25+
# Goland project files
2326
.idea/
2427

2528
# goreleaser

cmd/help/help.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func HelpFunc(
3535
if help, _ := clients.Config.Flags.GetBool("help"); help {
3636
clients.Config.LoadExperiments(ctx, clients.IO.PrintDebug)
3737
}
38-
style.ToggleCharm(clients.Config.WithExperimentOn(experiment.Charm))
38+
style.ToggleLipgloss(clients.Config.WithExperimentOn(experiment.Lipgloss))
3939
experiments := []string{}
4040
for _, exp := range clients.Config.GetExperiments() {
4141
if experiment.Includes(exp) {
@@ -68,7 +68,7 @@ func PrintHelpTemplate(cmd *cobra.Command, data style.TemplateData) {
6868
}
6969
cmd.Long = cmdLongF.String()
7070
tmpl := legacyHelpTemplate
71-
if style.IsCharmEnabled() {
71+
if style.IsLipglossEnabled() {
7272
tmpl = charmHelpTemplate
7373
}
7474
err = style.PrintTemplate(cmd.OutOrStdout(), tmpl, templateInfo{cmd, data})
@@ -121,7 +121,7 @@ const charmHelpTemplate string = `{{.Long | ToDescription}}
121121
// ════════════════════════════════════════════════════════════════════════════════
122122
// DEPRECATED: Legacy help template — aurora styling
123123
//
124-
// Delete this entire block when the charm experiment is permanently enabled.
124+
// Delete this entire block when the lipgloss experiment is permanently enabled.
125125
// ════════════════════════════════════════════════════════════════════════════════
126126

127127
const legacyHelpTemplate string = `{{.Long}}

cmd/project/create.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ type promptObject struct {
4747
Title string // "Reverse string"
4848
Repository string // "slack-samples/reverse-string"
4949
Description string // "A function that reverses a given string"
50+
Subdir string // "agents/hello-world" - subdirectory within the repository
5051
}
5152

5253
const viewMoreSamples = "slack-cli#view-more-samples"
@@ -158,11 +159,15 @@ func runCreateCommand(clients *shared.ClientFactory, cmd *cobra.Command, args []
158159
}
159160
}
160161

162+
subdir := createSubdirFlag
163+
if subdir == "" {
164+
subdir = template.GetSubdir()
165+
}
161166
createArgs := create.CreateArgs{
162167
AppName: appNameArg,
163168
Template: template,
164169
GitBranch: createGitBranchFlag,
165-
Subdir: createSubdirFlag,
170+
Subdir: subdir,
166171
}
167172
clients.EventTracker.SetAppTemplate(template.GetTemplatePath())
168173

cmd/project/create_samples.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func promptSampleSelection(ctx context.Context, clients *shared.ClientFactory, s
6767
sortedRepos := sortRepos(filteredRepos)
6868
selectOptions := make([]string, len(sortedRepos))
6969
for i, r := range sortedRepos {
70-
if !clients.Config.WithExperimentOn(experiment.Charm) {
70+
if !clients.Config.WithExperimentOn(experiment.Huh) {
7171
selectOptions[i] = fmt.Sprint(i+1, ". ", r.Name)
7272
} else {
7373
selectOptions[i] = r.Name
@@ -78,7 +78,7 @@ func promptSampleSelection(ctx context.Context, clients *shared.ClientFactory, s
7878
selection, err = clients.IO.SelectPrompt(ctx, "Select a sample to build upon:", selectOptions, iostreams.SelectPromptConfig{
7979
Description: func(value string, index int) string {
8080
desc := sortedRepos[index].Description
81-
if !clients.Config.WithExperimentOn(experiment.Charm) {
81+
if !clients.Config.WithExperimentOn(experiment.Huh) {
8282
desc += "\n https://github.com/" + sortedRepos[index].FullName
8383
}
8484
return desc

0 commit comments

Comments
 (0)