Skip to content

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

feat(config): list all aliases when `wt config alias show` has no name (#2684)

Maximilian Roosa3733dcce866
diff --git a/docs/content/config.md b/docs/content/config.md
index 29631899a..28bed9c3d 100644
--- a/docs/content/config.md
+++ b/docs/content/config.md
@@ -644,6 +644,9 @@ Aliases are command templates configured in user (`~/.config/worktrunk/config.to
### Examples
+List all configured aliases:
+{{ terminal(cmd="wt config alias show") }}
+
Show the template for `deploy`:
{{ terminal(cmd="wt config alias show deploy") }}
@@ -658,7 +661,7 @@ wt config alias - Inspect and preview aliases
Usage: <b><span class=c>wt config alias</span></b> <span class=c>[OPTIONS]</span> <span class=c>&lt;COMMAND&gt;</span>
<b><span class=g>Commands:</span></b>
- <b><span class=c>show</span></b> Show an alias&#39;s template as configured
+ <b><span class=c>show</span></b> Show an alias&#39;s template, or list all aliases
<b><span class=c>dry-run</span></b> Preview an alias invocation with template expansion
<b><span class=g>Options:</span></b>
diff --git a/skills/worktrunk/reference/config.md b/skills/worktrunk/reference/config.md
index c7c735d63..cda59c174 100644
--- a/skills/worktrunk/reference/config.md
+++ b/skills/worktrunk/reference/config.md
@@ -655,6 +655,11 @@ Aliases are command templates configured in user (`~/.config/worktrunk/config.to
### Examples
+List all configured aliases:
+```bash
+$ wt config alias show
+```
+
Show the template for `deploy`:
```bash
$ wt config alias show deploy
@@ -674,7 +679,7 @@ wt config alias - Inspect and preview aliases
Usage: wt config alias [OPTIONS] <COMMAND>
Commands:
- show Show an alias's template as configured
+ show Show an alias's template, or list all aliases
dry-run Preview an alias invocation with template expansion
Options:
diff --git a/src/cli/config.rs b/src/cli/config.rs
index f7a7207e2..8eb9983d6 100644
--- a/src/cli/config.rs
+++ b/src/cli/config.rs
@@ -314,21 +314,28 @@ Skips gracefully if the statusline is already configured."#
// dry-run previews the expansion for a given invocation.
#[derive(Subcommand)]
pub enum ConfigAliasCommand {
- /// Show an alias's template as configured
+ /// Show an alias's template, or list all aliases
#[command(
- after_long_help = r#"Prints each pipeline step's raw template indented with a gutter, tagged by source (user / project). Duplicate names defined in both configs show as two entries, runtime order (user first, then project).
+ after_long_help = r#"With no name, lists every configured alias — name, source, and a one-line summary — the same `Aliases:` block `wt --help` shows.
+
+With a name, prints each pipeline step's raw template indented with a gutter, tagged by source (user / project). Duplicate names defined in both configs show as two entries, runtime order (user first, then project).
## Examples
+List all configured aliases:
+```console
+$ wt config alias show
+```
+
Show the template for `deploy`:
```console
$ wt config alias show deploy
```"#
)]
Show {
- /// Alias name
+ /// Alias name (omit to list all)
#[arg(add = crate::completion::alias_name_completer())]
- name: String,
+ name: Option<String>,
},
/// Preview an alias invocation with template expansion
@@ -494,6 +501,11 @@ Approved commands are saved to `~/.config/worktrunk/approvals.toml`. Re-approval
## Examples
+List all configured aliases:
+```console
+$ wt config alias show
+```
+
Show the template for `deploy`:
```console
$ wt config alias show deploy
diff --git a/src/commands/alias.rs b/src/commands/alias.rs
index 43debb764..d12d69012 100644
--- a/src/commands/alias.rs
+++ b/src/commands/alias.rs
@@ -744,7 +744,7 @@ pub(crate) fn augment_help(help: &str, context: HelpContext) -> String {
///
/// `context` controls the "shadowed by built-in" annotation — see
/// [`HelpContext`].
-fn render_aliases_section(
+pub(crate) fn render_aliases_section(
entries: &[(String, CommandConfig, HookSource)],
context: HelpContext,
) -> String {
@@ -801,18 +801,18 @@ fn render_aliases_section(
/// separately preserves the individual command text; merging them would
/// reduce to an uninformative step count when both are unnamed singles.
///
-/// The caller (`augment_step_help`) latches `suppress_warnings()` before
-/// reaching here so the standard `UserConfig::load()` stays quiet: no
-/// deprecation warnings, no `.new` file writes, no approved-commands copy.
-/// Project config is parsed directly from TOML rather than via
-/// `ProjectConfig::load` because the `aliases` table has no deprecated forms
-/// — skipping the migration avoids the unrelated warnings entirely.
+/// Callers (`augment_help`, `wt config alias show` with no name) latch
+/// `suppress_warnings()` before reaching here so the standard `UserConfig::load()`
+/// stays quiet: no deprecation warnings, no `.new` file writes, no
+/// approved-commands copy. Project config is parsed directly from TOML rather
+/// than via `ProjectConfig::load` because the `aliases` table has no deprecated
+/// forms — skipping the migration avoids the unrelated warnings entirely.
///
/// Tolerates missing or unloadable config: this is a discovery surface, not
/// an execution surface, so we'd rather show the built-in commands than
/// error out when a repo isn't detected or a config file is malformed.
/// `step_alias` surfaces those errors at execution time.
-fn load_aliases_for_listing() -> Vec<(String, CommandConfig, HookSource)> {
+pub(crate) fn load_aliases_for_listing() -> Vec<(String, CommandConfig, HookSource)> {
let repo = Repository::current().ok();
let project_id = repo.as_ref().and_then(|r| r.project_identifier().ok());
diff --git a/src/commands/config/alias.rs b/src/commands/config/alias.rs
index 190a91d70..726d2d543 100644
--- a/src/commands/config/alias.rs
+++ b/src/commands/config/alias.rs
@@ -2,12 +2,14 @@
//!
//! Introspection and preview for aliases configured in user config
//! (`~/.config/worktrunk/config.toml`) and project config (`.config/wt.toml`).
-//! `show` prints the template text, source-labeled, with one gutter block per
-//! alias entry and `# <name>` comment lines above named pipeline steps.
-//! `dry-run` parses a per-invocation argument vector with the same parser
-//! `wt <alias>` uses, then expands templates using the same context as
-//! execution — so previews match what the real run will do. The two share a
-//! layout; only the header verb differs (`:` vs ` would run:`).
+//! `show` with no name lists every configured alias — the same `Aliases:`
+//! block `wt --help` renders, via [`render_aliases_section`]. `show <name>`
+//! prints the template text, source-labeled, with one gutter block per alias
+//! entry and `# <name>` comment lines above named pipeline steps. `dry-run`
+//! parses a per-invocation argument vector with the same parser `wt <alias>`
+//! uses, then expands templates using the same context as execution — so
+//! previews match what the real run will do. `show <name>` and `dry-run`
+//! share a layout; only the header verb differs (`:` vs ` would run:`).
//!
//! ## Why `dry-run` lives here rather than on the alias dispatch
//!
@@ -29,7 +31,10 @@ use worktrunk::config::{
use worktrunk::git::{Repository, WorktrunkError};
use worktrunk::styling::{format_bash_with_gutter, info_message, println};
-use crate::commands::alias::{AliasOptions, TOP_LEVEL_BUILTINS, load_aliases};
+use crate::commands::alias::{
+ AliasOptions, HelpContext, TOP_LEVEL_BUILTINS, load_aliases, load_aliases_for_listing,
+ render_aliases_section,
+};
use crate::commands::build_invalid_subcommand_error;
use crate::commands::command_executor::{
CommandContext, build_hook_context, expand_shell_template,
@@ -37,11 +42,16 @@ use crate::commands::command_executor::{
use crate::commands::did_you_mean;
use crate::commands::hooks::HookSource;
-/// Show the configured template(s) for an alias, tagged by source.
+/// Show the configured template(s) for an alias — or, with no name, list
+/// every configured alias.
///
/// When the same name is defined in both user and project config, both
/// entries are printed (user first, matching runtime execution order).
-pub fn handle_alias_show(name: String) -> anyhow::Result<()> {
+pub fn handle_alias_show(name: Option<String>) -> anyhow::Result<()> {
+ let Some(name) = name else {
+ return list_aliases();
+ };
+
let repo = Repository::current()?;
let user_config = repo.user_config();
let project_config = repo.project_config()?;
@@ -69,6 +79,29 @@ pub fn handle_alias_show(name: String) -> anyhow::Result<()> {
Ok(())
}
+/// List every configured alias as the styled `Aliases:` block — the same
+/// listing `wt --help` renders, reused via [`render_aliases_section`].
+///
+/// Tolerates running outside a repository (user-config aliases still list,
+/// project-config ones are skipped) and outside a config (prints a note).
+/// Warnings are suppressed: this is a discovery surface, so a deprecated
+/// `wt.toml` shouldn't make `wt config alias show` noisy — `wt config update`
+/// is where deprecations get reported.
+fn list_aliases() -> anyhow::Result<()> {
+ worktrunk::config::suppress_warnings();
+ let aliases = load_aliases_for_listing();
+ if aliases.is_empty() {
+ println!("{}", info_message("No aliases configured"));
+ return Ok(());
+ }
+ // The `Aliases:` block lists names invoked as `wt <name>`, so annotate
+ // shadowing from the top-level perspective (an alias named `list` is
+ // unreachable; one named `commit` is not — `wt commit` runs it).
+ let section = render_aliases_section(&aliases, HelpContext::TopLevel);
+ crate::help_pager::show_help_in_pager(&format!("{section}\n"), true);
+ Ok(())
+}
+
/// Emit a warning if `name` is a top-level built-in subcommand. Aliases with
/// these names are unreachable via `wt <name>` — clap matches the built-in
/// first. Reported in `show`/`dry-run` so the user finds out at the discovery
diff --git a/tests/integration_tests/step_alias.rs b/tests/integration_tests/step_alias.rs
index b33e95624..07b81d11d 100644
--- a/tests/integration_tests/step_alias.rs
+++ b/tests/integration_tests/step_alias.rs
@@ -1779,6 +1779,59 @@ deploy = "make deploy BRANCH={{ branch }}"
));
}
+/// `wt config alias show` with no name lists every configured alias — the same
+/// `Aliases:` block `wt --help` renders. Names defined in both user and project
+/// config show twice (user first), and a name shadowed by a top-level built-in
+/// is annotated.
+#[rstest]
+fn test_config_alias_show_lists_all(mut repo: TestRepo) {
+ repo.write_project_config(
+ r#"
+[aliases]
+deploy = "echo from project"
+"only-project" = "echo p"
+list = "echo custom list"
+"#,
+ );
+ repo.commit("Add alias config");
+ let feature_path = repo.add_worktree("feature");
+ repo.write_test_config(
+ r#"
+[aliases]
+deploy = "echo from user"
+greet = "echo hi {{ branch }}"
+"#,
+ );
+
+ let settings = setup_snapshot_settings(&repo);
+ let _guard = settings.bind_to_scope();
+
+ assert_cmd_snapshot!(make_snapshot_cmd(
+ &repo,
+ "config",
+ &["alias", "show"],
+ Some(&feature_path),
+ ));
+}
+
+/// `wt config alias show` with no name and no aliases configured prints a note
+/// rather than an empty `Aliases:` heading.
+#[rstest]
+fn test_config_alias_show_lists_none(mut repo: TestRepo) {
+ repo.commit("Initial commit");
+ let feature_path = repo.add_worktree("feature");
+
+ let settings = setup_snapshot_settings(&repo);
+ let _guard = settings.bind_to_scope();
+
+ assert_cmd_snapshot!(make_snapshot_cmd(
+ &repo,
+ "config",
+ &["alias", "show"],
+ Some(&feature_path),
+ ));
+}
+
/// Unknown alias name triggers a did-you-mean suggestion. Format mirrors
/// `wt <typo>` and `wt step <typo>`: clap-native `InvalidSubcommand` with a
/// `tip:` line — same shape at every alias-typo surface.
diff --git a/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_lists_all.snap b/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_lists_all.snap
new file mode 100644
index 000000000..01f27d136
--- /dev/null
+++ b/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_lists_all.snap
@@ -0,0 +1,62 @@
+---
+source: tests/integration_tests/step_alias.rs
+info:
+ program: wt
+ args:
+ - config
+ - alias
+ - show
+ env:
+ APPDATA: "[TEST_CONFIG_HOME]"
+ CLICOLOR_FORCE: "1"
+ COLUMNS: "500"
+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
+ GIT_COMMON_DIR: ""
+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
+ GIT_CONFIG_SYSTEM: /dev/null
+ GIT_DIR: ""
+ GIT_EDITOR: ""
+ GIT_INDEX_FILE: ""
+ GIT_OBJECT_DIRECTORY: ""
+ GIT_TERMINAL_PROMPT: "0"
+ GIT_WORK_TREE: ""
+ HOME: "[TEST_HOME]"
+ LANG: C
+ LC_ALL: C
+ MOCK_CONFIG_DIR: "[MOCK_CONFIG_DIR]"
+ NO_COLOR: ""
+ OPENCODE_CONFIG_DIR: "[TEST_OPENCODE_CONFIG]"
+ PATH: "[PATH]"
+ PSModulePath: ""
+ RUST_LOG: warn
+ SHELL: ""
+ TERM: alacritty
+ USERPROFILE: "[TEST_HOME]"
+ WORKTRUNK_APPROVALS_PATH: "[TEST_APPROVALS]"
+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
+ WORKTRUNK_SYSTEM_CONFIG_PATH: "[TEST_SYSTEM_CONFIG]"
+ WORKTRUNK_TEST_BASH_INSTALLED: "0"
+ WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"
+ WORKTRUNK_TEST_DELAYED_STREAM_MS: "-1"
+ WORKTRUNK_TEST_EPOCH: "1735776000"
+ WORKTRUNK_TEST_FISH_INSTALLED: "0"
+ WORKTRUNK_TEST_NUSHELL_ENV: "0"
+ WORKTRUNK_TEST_OPENCODE_INSTALLED: "0"
+ WORKTRUNK_TEST_POWERSHELL_ENV: "0"
+ WORKTRUNK_TEST_POWERSHELL_INSTALLED: "0"
+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
+ WORKTRUNK_TEST_ZSH_INSTALLED: "0"
+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
+---
+success: true
+exit_code: 0
+----- stdout -----
+Aliases:
+ deploy echo from user (user)
+ deploy echo from project (project)
+ greet echo hi {{ branch }}
+ list echo custom list (shadowed by built-in)
+ only-project echo p
+
+----- stderr -----
diff --git a/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_lists_none.snap b/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_lists_none.snap
new file mode 100644
index 000000000..5ac80d4bf
--- /dev/null
+++ b/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_lists_none.snap
@@ -0,0 +1,57 @@
+---
+source: tests/integration_tests/step_alias.rs
+info:
+ program: wt
+ args:
+ - config
+ - alias
+ - show
+ env:
+ APPDATA: "[TEST_CONFIG_HOME]"
+ CLICOLOR_FORCE: "1"
+ COLUMNS: "500"
+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
+ GIT_COMMON_DIR: ""
+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
+ GIT_CONFIG_SYSTEM: /dev/null
+ GIT_DIR: ""
+ GIT_EDITOR: ""
+ GIT_INDEX_FILE: ""
+ GIT_OBJECT_DIRECTORY: ""
+ GIT_TERMINAL_PROMPT: "0"
+ GIT_WORK_TREE: ""
+ HOME: "[TEST_HOME]"
+ LANG: C
+ LC_ALL: C
+ MOCK_CONFIG_DIR: "[MOCK_CONFIG_DIR]"
+ NO_COLOR: ""
+ OPENCODE_CONFIG_DIR: "[TEST_OPENCODE_CONFIG]"
+ PATH: "[PATH]"
+ PSModulePath: ""
+ RUST_LOG: warn
+ SHELL: ""
+ TERM: alacritty
+ USERPROFILE: "[TEST_HOME]"
+ WORKTRUNK_APPROVALS_PATH: "[TEST_APPROVALS]"
+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
+ WORKTRUNK_SYSTEM_CONFIG_PATH: "[TEST_SYSTEM_CONFIG]"
+ WORKTRUNK_TEST_BASH_INSTALLED: "0"
+ WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"
+ WORKTRUNK_TEST_DELAYED_STREAM_MS: "-1"
+ WORKTRUNK_TEST_EPOCH: "1735776000"
+ WORKTRUNK_TEST_FISH_INSTALLED: "0"
+ WORKTRUNK_TEST_NUSHELL_ENV: "0"
+ WORKTRUNK_TEST_OPENCODE_INSTALLED: "0"
+ WORKTRUNK_TEST_POWERSHELL_ENV: "0"
+ WORKTRUNK_TEST_POWERSHELL_INSTALLED: "0"
+ WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
+ WORKTRUNK_TEST_ZSH_INSTALLED: "0"
+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
+---
+success: true
+exit_code: 0
+----- stdout -----
+○ No aliases configured
+
+----- stderr -----
diff --git a/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_unknown_no_suggestions.snap b/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_unknown_no_suggestions.snap
index d8959f25f..a8e124a9a 100644
--- a/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_unknown_no_suggestions.snap
+++ b/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_unknown_no_suggestions.snap
@@ -13,10 +13,15 @@ info:
COLUMNS: "500"
GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
+ GIT_COMMON_DIR: ""
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
+ GIT_DIR: ""
GIT_EDITOR: ""
+ GIT_INDEX_FILE: ""
+ GIT_OBJECT_DIRECTORY: ""
GIT_TERMINAL_PROMPT: "0"
+ GIT_WORK_TREE: ""
HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
@@ -32,13 +37,17 @@ info:
WORKTRUNK_APPROVALS_PATH: "[TEST_APPROVALS]"
WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
WORKTRUNK_SYSTEM_CONFIG_PATH: "[TEST_SYSTEM_CONFIG]"
+ WORKTRUNK_TEST_BASH_INSTALLED: "0"
WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"
WORKTRUNK_TEST_DELAYED_STREAM_MS: "-1"
WORKTRUNK_TEST_EPOCH: "1735776000"
+ WORKTRUNK_TEST_FISH_INSTALLED: "0"
WORKTRUNK_TEST_NUSHELL_ENV: "0"
WORKTRUNK_TEST_OPENCODE_INSTALLED: "0"
WORKTRUNK_TEST_POWERSHELL_ENV: "0"
+ WORKTRUNK_TEST_POWERSHELL_INSTALLED: "0"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
+ WORKTRUNK_TEST_ZSH_INSTALLED: "0"
XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
---
success: false
@@ -48,6 +57,6 @@ exit_code: 2
----- stderr -----
error: unrecognized alias 'zzzzzzzz'
-Usage: wt config alias show <NAME>
+Usage: wt config alias show [NAME]
For more information, try '--help'.
diff --git a/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_unknown_preserves_user_input.snap b/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_unknown_preserves_user_input.snap
index 67ddf2ef4..8c5c53555 100644
--- a/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_unknown_preserves_user_input.snap
+++ b/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_unknown_preserves_user_input.snap
@@ -13,10 +13,15 @@ info:
COLUMNS: "500"
GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
+ GIT_COMMON_DIR: ""
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
+ GIT_DIR: ""
GIT_EDITOR: ""
+ GIT_INDEX_FILE: ""
+ GIT_OBJECT_DIRECTORY: ""
GIT_TERMINAL_PROMPT: "0"
+ GIT_WORK_TREE: ""
HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
@@ -32,13 +37,17 @@ info:
WORKTRUNK_APPROVALS_PATH: "[TEST_APPROVALS]"
WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
WORKTRUNK_SYSTEM_CONFIG_PATH: "[TEST_SYSTEM_CONFIG]"
+ WORKTRUNK_TEST_BASH_INSTALLED: "0"
WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"
WORKTRUNK_TEST_DELAYED_STREAM_MS: "-1"
WORKTRUNK_TEST_EPOCH: "1735776000"
+ WORKTRUNK_TEST_FISH_INSTALLED: "0"
WORKTRUNK_TEST_NUSHELL_ENV: "0"
WORKTRUNK_TEST_OPENCODE_INSTALLED: "0"
WORKTRUNK_TEST_POWERSHELL_ENV: "0"
+ WORKTRUNK_TEST_POWERSHELL_INSTALLED: "0"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
+ WORKTRUNK_TEST_ZSH_INSTALLED: "0"
XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
---
success: false
@@ -50,6 +59,6 @@ exit_code: 2
tip: a similar alias exists: 'my-subcommand'
-Usage: wt config alias show <NAME>
+Usage: wt config alias show [NAME]
For more information, try '--help'.
diff --git a/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_unknown_singular_suggestion.snap b/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_unknown_singular_suggestion.snap
index 55a962f6a..61c54b2a2 100644
--- a/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_unknown_singular_suggestion.snap
+++ b/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_unknown_singular_suggestion.snap
@@ -13,10 +13,15 @@ info:
COLUMNS: "500"
GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
+ GIT_COMMON_DIR: ""
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
+ GIT_DIR: ""
GIT_EDITOR: ""
+ GIT_INDEX_FILE: ""
+ GIT_OBJECT_DIRECTORY: ""
GIT_TERMINAL_PROMPT: "0"
+ GIT_WORK_TREE: ""
HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
@@ -32,13 +37,17 @@ info:
WORKTRUNK_APPROVALS_PATH: "[TEST_APPROVALS]"
WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
WORKTRUNK_SYSTEM_CONFIG_PATH: "[TEST_SYSTEM_CONFIG]"
+ WORKTRUNK_TEST_BASH_INSTALLED: "0"
WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"
WORKTRUNK_TEST_DELAYED_STREAM_MS: "-1"
WORKTRUNK_TEST_EPOCH: "1735776000"
+ WORKTRUNK_TEST_FISH_INSTALLED: "0"
WORKTRUNK_TEST_NUSHELL_ENV: "0"
WORKTRUNK_TEST_OPENCODE_INSTALLED: "0"
WORKTRUNK_TEST_POWERSHELL_ENV: "0"
+ WORKTRUNK_TEST_POWERSHELL_INSTALLED: "0"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
+ WORKTRUNK_TEST_ZSH_INSTALLED: "0"
XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
---
success: false
@@ -50,6 +59,6 @@ exit_code: 2
tip: a similar alias exists: 'deploy'
-Usage: wt config alias show <NAME>
+Usage: wt config alias show [NAME]
For more information, try '--help'.
diff --git a/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_unknown_suggests.snap b/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_unknown_suggests.snap
index fe0955dad..a3e15eb4b 100644
--- a/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_unknown_suggests.snap
+++ b/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_unknown_suggests.snap
@@ -13,10 +13,15 @@ info:
COLUMNS: "500"
GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"
GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"
+ GIT_COMMON_DIR: ""
GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"
GIT_CONFIG_SYSTEM: /dev/null
+ GIT_DIR: ""
GIT_EDITOR: ""
+ GIT_INDEX_FILE: ""
+ GIT_OBJECT_DIRECTORY: ""
GIT_TERMINAL_PROMPT: "0"
+ GIT_WORK_TREE: ""
HOME: "[TEST_HOME]"
LANG: C
LC_ALL: C
@@ -32,13 +37,17 @@ info:
WORKTRUNK_APPROVALS_PATH: "[TEST_APPROVALS]"
WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"
WORKTRUNK_SYSTEM_CONFIG_PATH: "[TEST_SYSTEM_CONFIG]"
+ WORKTRUNK_TEST_BASH_INSTALLED: "0"
WORKTRUNK_TEST_CLAUDE_INSTALLED: "0"
WORKTRUNK_TEST_DELAYED_STREAM_MS: "-1"
WORKTRUNK_TEST_EPOCH: "1735776000"
+ WORKTRUNK_TEST_FISH_INSTALLED: "0"
WORKTRUNK_TEST_NUSHELL_ENV: "0"
WORKTRUNK_TEST_OPENCODE_INSTALLED: "0"
WORKTRUNK_TEST_POWERSHELL_ENV: "0"
+ WORKTRUNK_TEST_POWERSHELL_INSTALLED: "0"
WORKTRUNK_TEST_SKIP_URL_HEALTH_CHECK: "1"
+ WORKTRUNK_TEST_ZSH_INSTALLED: "0"
XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"
---
success: false
@@ -50,6 +59,6 @@ exit_code: 2
tip: some similar aliases exist: 'deploy', 'hello'
-Usage: wt config alias show <NAME>
+Usage: wt config alias show [NAME]
For more information, try '--help'.