This change removes the `wt-sw` and `wt-fin` aliases from the generated shell scripts (bash, fish, zsh) and the corresponding documentation. This simplifies the shell integration by reducing the number of commands users need to learn and maintain.
Co-authored-by: Claude <no-reply@anthropic.com>
This commit renames the project from 'arbor' to 'worktrunk' across all relevant files.
- Updates `Cargo.toml` and `Cargo.lock` to reflect the new package name and binary name (`wt`).
- Renames the `ArborConfig` struct to `WorktrunkConfig` and related functions.
- Changes all occurrences of 'arbor' to 'worktrunk' or 'wt' in `README.md`, `DEMO.md`, and `TODO.md`.
- Updates shell integration templates (`bash.sh`, `fish.fish`) to use 'wt' as the default command prefix and `__WORKTRUNK_CD__` for directives.
- Adjusts CLI argument defaults and internal directive prefixes in `src/main.rs`.
- Updates test snapshots to reflect the new project name and command output.
Co-authored-by: Claude <no-reply@anthropic.com>
This commit introduces the `arbor init` command to generate shell integration code for Bash, Fish, and Zsh. This enables automatic directory changes when using `arbor-switch` and `arbor-finish` commands.
Key changes:
- **`arbor init <shell>` command**: Generates shell-specific functions and aliases.
- **Directive Protocol**: `arbor` binary outputs `__ARBOR_CD__<path>` directives, which the shell wrapper parses to execute `cd`.
- **Askama Templates**: Uses Askama for type-safe, compile-time generation of shell scripts.
- **Customization**: Supports `--cmd <prefix>` for custom command prefixes and `--hook prompt` for prompt integration.
- **New Commands**: Adds `switch`, `finish`, `push`, `merge`, and `hook` commands to the CLI, with `--internal` flags for directive output.
- **Documentation**: Adds `README.md` and `DEMO.md` to explain setup and usage.
- **Testing**: Includes new snapshot tests for `arbor init` and directive output.
- **Dependency Updates**: Updates `Cargo.lock` to include `askama` and related crates, and `windows-sys` to 0.61.2.
Co-authored-by: Claude <no-reply@anthropic.com>