Skip to content

chore: Rename shell-setup to shell-init for cross-tool consistency - #5

Merged
sahil87 merged 1 commit into
mainfrom
molten-meadow
May 9, 2026
Merged

sahil87 merged 1 commit into
mainfrom
molten-meadow

Conversation

@sahil-noon

Copy link
Copy Markdown
Collaborator

Summary

Rename the wt shell-setup subcommand to wt shell-init to match the equivalent commands in shll and hop. Hard rename with no backwards-compatible alias — users with eval \"\$(wt shell-setup)\" in their shell profile must update to wt shell-init.

Changes

  • Renamed src/cmd/wt/shell_setup{,_test}.go → shell_init{,_test}.go; renamed shellSetupCmd → shellInitCmd and Use: "shell-setup" → "shell-init"
  • Updated user-facing strings: root command long-help, the "Open here" stderr hint in apps.go, and matching test assertions
  • Updated docs: README.md, docs/specs/cli-surface.md, docs/specs/launcher-contract.md, docs/specs/index.md
  • Bumped fab/project/constitution.md to 1.0.1 (Principle I and Principle VII reference the new name) and updated the prose/file-name reference in fab/project/context.md

Test plan

  • `go build ./...` succeeds
  • `go test ./...` passes (cmd/wt, internal/update, internal/worktree)
  • Manual: `eval "$(wt shell-init)"` in a fresh shell, then trigger "Open here" via `wt open` to confirm the wrapper still cd's
  • Manual: `wt shell-setup` now errors with "unknown command" (confirms no alias)

Aligns the wt subcommand name with shll and hop, which both use
shell-init. Hard rename — no backwards-compatible alias.

Constitution bumped to 1.0.1 (descriptive references updated).
@sahil87
sahil87 marked this pull request as ready for review May 9, 2026 07:21
@sahil87
sahil87 merged commit aa942e4 into main May 9, 2026
@sahil87
sahil87 deleted the molten-meadow branch May 9, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants