Commit Graph

105 Commits

Author SHA1 Message Date
Maximilian Roos 0516788184 feat: Write commented example config to disk
The `config create` command now writes an example configuration file with all
settings commented out. This provides a clear template for users to
uncomment and customize, improving the initial configuration experience.

Previously, the example config was written directly, requiring manual
commenting for most settings. This change simplifies setup by providing
a ready-to-use commented structure.
2025-11-23 13:15:03 -08:00
Maximilian Roos b8ba573600 feat: Add and standardize --stage option and config
The `--stage` option has been added to `wt commit` and `wt merge` to control whether changes are staged before committing/merging. A new `[commit]` config section now provides a shared `stage` default for this behavior.

- **`wt commit` and `wt merge`**: Now support the `--stage` option.
- **`[commit]` config section**: Introduced with a `stage` field to set the default behavior for the `--stage` option across `wt commit` and `wt merge`.
- **`wt beta squash`**: Updated to use `--stage` for consistency.
- **`tracked_only` config field**: Removed as it is no longer used.
2025-11-21 21:41:16 -08:00
Maximilian Roos 8a881a263f feat: Add user config defaults and override flags for merge 2025-11-21 21:00:26 -08:00
Maximilian Roos fbb16cf065 feat: Support template files for commit messages
Introduces `template-file` and `squash-template-file` options in the config to load commit message templates from a file. This allows for more flexible template management.

Updates the default squash template prompt with a new `Format` section to guide the LLM on output requirements and ensure consistency with other `wt` commits.

Moves LLM config from environment variables to a config file for integration tests to simplify test setup and enhance maintainability. This removes `snapshot_merge_with_env` and uses `snapshot_merge` directly.
2025-11-21 20:08:32 -08:00
Maximilian Roos aa9e5d5d9e refactor: Move dev resources to dev/ directory
Moves `scripts/` and `config.example.toml` into a new `dev/` directory.

This clarifies the separation between user-facing content and development-related assets.

- Updates all internal references (`README.md`, `CLAUDE.md`, `config.rs`, `.gitignore`).
- Renames `scripts/setup-claude-code-web.sh` to `dev/setup-claude-code-web.sh`.
- Renames `scripts/wt-demo-build.sh` to `dev/wt-demo-build.sh`.
- Renames `scripts/wt-demo/` to `dev/wt-demo/`.
- Renames `config.example.toml` to `dev/config.example.toml`.
- Adds `dev/wt-demo/README.md` to reflect the new path.
2025-11-21 15:25:41 -08:00