Skip to content

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

Combine config hint messages for brevity

Maximilian Roos5f304744c937
diff --git a/src/commands/config.rs b/src/commands/config.rs
index a490ae23d..eb1bb2226 100644
--- a/src/commands/config.rs
+++ b/src/commands/config.rs
@@ -87,10 +87,7 @@ fn create_config_file(
)))?;
output::blank()?;
output::print(hint_message(cformat!(
- "Use <bright-black>wt config show</> to view existing configuration"
- )))?;
- output::print(hint_message(cformat!(
- "Use <bright-black>wt config create --help</> for config format reference"
+ "Use <bright-black>wt config show</> to view, or <bright-black>wt config create --help</> for format reference"
)))?;
return Ok(());
}
@@ -216,16 +213,11 @@ fn render_user_config(out: &mut String) -> anyhow::Result<()> {
// Check if file exists
if !config_path.exists() {
- writeln!(
- out,
- "{}",
- cformat!("{HINT_EMOJI} <dim>Not found (using defaults)</>")
- )?;
writeln!(
out,
"{}",
cformat!(
- "{HINT_EMOJI} <dim>Run <bright-black>wt config create</> to create a config file</>"
+ "{HINT_EMOJI} <dim>Not found (using defaults); run <bright-black>wt config create</> to create</>"
)
)?;
writeln!(out)?;
diff --git a/tests/integration_tests/config_init.rs b/tests/integration_tests/config_init.rs
index 82f8e360f..4167afa80 100644
--- a/tests/integration_tests/config_init.rs
+++ b/tests/integration_tests/config_init.rs
@@ -32,8 +32,7 @@ fn test_config_init_already_exists() {
----- stderr -----
⚪ User config already exists: ~/.config/worktrunk/config.toml
- 💡 Use wt config show to view existing configuration
- 💡 Use wt config create --help for config format reference
+ 💡 Use wt config show to view, or wt config create --help for format reference
");
});
}