Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-cli-completions-hyphen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/cli": patch
---

fix(cli): replace all hyphens in shell completion command names
4 changes: 2 additions & 2 deletions packages/cli/src/internal/commandDescriptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ const getBashCompletionsInternal = (
: pipe(
info.parentCommands,
Arr.append(info.command.name),
Arr.map((command) => command.replace("-", "__"))
Arr.map((command) => command.replaceAll("-", "__"))
)
const caseName = Arr.join(preformatted, ",")
const funcName = Arr.join(preformatted, "__")
Expand Down Expand Up @@ -1238,7 +1238,7 @@ const getZshCompletionsInternal = (
: pipe(
info.parentCommands,
Arr.append(info.command.name),
Arr.map((command) => command.replace("-", "__"))
Arr.map((command) => command.replaceAll("-", "__"))
)
const underscoreName = Arr.join(preformatted, "__")
const spaceName = Arr.join(preformatted, " ")
Expand Down
Loading