Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

docs: Refer to `wt config create --help`

Maximilian Roos79ead88546ff
diff --git a/README.md b/README.md
index 87b7dfbaa..af4fdf0ba 100644
--- a/README.md
+++ b/README.md
@@ -796,7 +796,7 @@ Docs: https://llm.datasette.io/ | https://github.com/sigoden/aichat
**Global config** (user settings):
- Location: `~/.config/worktrunk/config.toml` (or `WORKTRUNK_CONFIG_PATH`)
-- Run `wt config create` to generate with documented examples
+- Run `wt config create --help` to view documented examples
**Project config** (repository hooks):
- Location: `.config/wt.toml` in repository root
diff --git a/src/cli.rs b/src/cli.rs
index 68188f8ba..0316a66f0 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -521,7 +521,7 @@ Docs: https://llm.datasette.io/ | https://github.com/sigoden/aichat
**Global config** (user settings):
- Location: `~/.config/worktrunk/config.toml` (or `WORKTRUNK_CONFIG_PATH`)
-- Run `wt config create` to generate with documented examples
+- Run `wt config create --help` to view documented examples
**Project config** (repository hooks):
- Location: `.config/wt.toml` in repository root
diff --git a/src/commands/config.rs b/src/commands/config.rs
index 674ed1f22..efe9e58ea 100644
--- a/src/commands/config.rs
+++ b/src/commands/config.rs
@@ -48,6 +48,9 @@ pub fn handle_config_create() -> anyhow::Result<()> {
);
println!();
println!("{HINT_EMOJI} {HINT}Use 'wt config list' to view existing configuration{HINT:#}");
+ println!(
+ "{HINT_EMOJI} {HINT}Use 'wt config create --help' for config format reference{HINT:#}"
+ );
return Ok(());
}
diff --git a/tests/integration_tests/config_init.rs b/tests/integration_tests/config_init.rs
index 6583ece27..3276e8691 100644
--- a/tests/integration_tests/config_init.rs
+++ b/tests/integration_tests/config_init.rs
@@ -31,6 +31,7 @@ fn test_config_init_already_exists() {
⚪ Global config already exists: ~/.config/worktrunk/config.toml
💡 Use 'wt config list' to view existing configuration
+ 💡 Use 'wt config create --help' for config format reference
----- stderr -----
");
diff --git a/tests/snapshots/integration__integration_tests__help__help_config.snap b/tests/snapshots/integration__integration_tests__help__help_config.snap
index 946f7fa6c..43722cb96 100644
--- a/tests/snapshots/integration__integration_tests__help__help_config.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_config.snap
@@ -77,7 +77,7 @@ Docs: https://llm.datasette.io/ | https://github.com/sigoden/aichat
Global config (user settings):
- Location: ~/.config/worktrunk/config.toml (or WORKTRUNK_CONFIG_PATH)
-- Run wt config create to generate with documented examples
+- Run wt config create --help to view documented examples
Project config (repository hooks):
- Location: .config/wt.toml in repository root