Skip to content

feat: add multi-style command shortcuts system#69

Merged
avihut merged 1 commit intodevelopfrom
daft-4/shortcuts
Jan 23, 2026
Merged

feat: add multi-style command shortcuts system#69
avihut merged 1 commit intodevelopfrom
daft-4/shortcuts

Conversation

@avihut
Copy link
Owner

@avihut avihut commented Jan 23, 2026

Summary

  • Add support for three shortcut styles for frequently used commands:
    • Git style (default): gwtclone, gwtco, gwtcb, gwtcbm, gwtprune, gwtcarry, gwtfetch, gwtinit
    • Shell style: gwco, gwcob, gwcobd
    • Legacy style: gclone, gcw, gcbw, gcbdw, gprune
  • Add daft setup shortcuts command for managing shortcut symlinks
  • Shortcuts are resolved in the multicall binary before command routing

Test plan

  • Unit tests pass (87 tests)
  • Integration tests pass (143 tests)
  • Clippy passes with no warnings
  • Code formatting verified
  • Shortcut resolution tested (gwtco --help shows checkout help)
  • Management commands tested (daft setup shortcuts list/status/enable/disable/only)
  • Dry-run mode verified

Fixes #4

🤖 Generated with Claude Code

Add support for three shortcut styles that users can switch between:
- Git style (default): gwtclone, gwtco, gwtcb, gwtcbm, gwtprune, etc.
- Shell style: gwco, gwcob, gwcobd
- Legacy style: gclone, gcw, gcbw, gcbdw, gprune

Key changes:
- Add src/shortcuts.rs with centralized shortcut definitions
- Add src/commands/shortcuts.rs for `daft setup shortcuts` command
- Update main.rs to resolve shortcuts before command routing
- Update install.sh to create git-style shortcuts by default
- Update justfile to include shortcuts in dev setup
- Update documentation (CLAUDE.md, README.md, HOMEBREW.md)

The `daft setup shortcuts` command provides:
- list: Show all shortcut styles and their mappings
- status: Show currently installed shortcuts
- enable/disable: Manage individual styles
- only: Enable exclusively one style

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@avihut avihut self-assigned this Jan 23, 2026
@avihut avihut added the enhancement New feature or request label Jan 23, 2026
@avihut avihut added this to the v1.0.0 milestone Jan 23, 2026
@avihut avihut linked an issue Jan 23, 2026 that may be closed by this pull request
24 tasks
@avihut avihut merged commit 5503dbc into develop Jan 23, 2026
3 checks passed
@avihut avihut deleted the daft-4/shortcuts branch January 23, 2026 18:33
avihut added a commit that referenced this pull request Jan 24, 2026
Add support for three shortcut styles that users can switch between:
- Git style (default): gwtclone, gwtco, gwtcb, gwtcbm, gwtprune, etc.
- Shell style: gwco, gwcob, gwcobd
- Legacy style: gclone, gcw, gcbw, gcbdw, gprune

Key changes:
- Add src/shortcuts.rs with centralized shortcut definitions
- Add src/commands/shortcuts.rs for `daft setup shortcuts` command
- Update main.rs to resolve shortcuts before command routing
- Update install.sh to create git-style shortcuts by default
- Update justfile to include shortcuts in dev setup
- Update documentation (CLAUDE.md, README.md, HOMEBREW.md)

The `daft setup shortcuts` command provides:
- list: Show all shortcut styles and their mappings
- status: Show currently installed shortcuts
- enable/disable: Manage individual styles
- only: Enable exclusively one style

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Command Shortcuts

1 participant