Skip to content

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

feat(config): bare `wt config alias show` lists full definitions (#2691)

Maximilian Roos014765252fc8
diff --git a/docs/content/config.md b/docs/content/config.md
index af738686f..78e3004ca 100644
--- a/docs/content/config.md
+++ b/docs/content/config.md
@@ -644,7 +644,7 @@ Aliases are command templates configured in user (`~/.config/worktrunk/config.to
### Examples
-List all configured aliases:
+Show every configured alias's template:
{{ terminal(cmd="wt config alias show") }}
Show the template for `deploy`:
@@ -661,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, or list all aliases
+ <b><span class=c>show</span></b> Show an alias&#39;s template, or all aliases&#39; templates
<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 04684be6c..d337cf369 100644
--- a/skills/worktrunk/reference/config.md
+++ b/skills/worktrunk/reference/config.md
@@ -655,7 +655,7 @@ Aliases are command templates configured in user (`~/.config/worktrunk/config.to
### Examples
-List all configured aliases:
+Show every configured alias's template:
```bash
$ wt config alias show
```
@@ -679,7 +679,7 @@ wt config alias - Inspect and preview aliases
Usage: wt config alias [OPTIONS] <COMMAND>
Commands:
- show Show an alias's template, or list all aliases
+ show Show an alias's template, or all aliases' templates
dry-run Preview an alias invocation with template expansion
Options:
diff --git a/src/cli/config.rs b/src/cli/config.rs
index 8eb9983d6..302a48c24 100644
--- a/src/cli/config.rs
+++ b/src/cli/config.rs
@@ -314,15 +314,15 @@ 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, or list all aliases
+ /// Show an alias's template, or all aliases' templates
#[command(
- 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.
+ after_long_help = r#"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 in runtime order (user first, then project).
-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).
+With no name, prints that block for every configured alias in name order — equivalent to running `wt config alias show <name>` for each. `wt --help` shows a compact names-only list and points here.
## Examples
-List all configured aliases:
+Show every alias's template:
```console
$ wt config alias show
```
@@ -333,7 +333,7 @@ $ wt config alias show deploy
```"#
)]
Show {
- /// Alias name (omit to list all)
+ /// Alias name (omit to show all)
#[arg(add = crate::completion::alias_name_completer())]
name: Option<String>,
},
@@ -501,7 +501,7 @@ Approved commands are saved to `~/.config/worktrunk/approvals.toml`. Re-approval
## Examples
-List all configured aliases:
+Show every configured alias's template:
```console
$ wt config alias show
```
diff --git a/src/commands/alias.rs b/src/commands/alias.rs
index 963ae2a86..afd9fb5c9 100644
--- a/src/commands/alias.rs
+++ b/src/commands/alias.rs
@@ -731,82 +731,18 @@ pub(crate) fn augment_help(help: &str, context: HelpContext) -> String {
}
}
-/// Format the list of aliases as a styled help section.
-///
-/// Matches clap's "Commands:" / "Options:" styling (bold+green heading,
-/// bold+cyan names) so the Aliases section blends in with the rest of
-/// `-h` output. Returns the block without leading or trailing blank lines —
-/// the caller positions it.
-///
-/// When a name is defined in both user and project config, two rows are
-/// shown (user first, then project, matching runtime order). Both rows
-/// carry a source marker so the reader can tell which pipeline is which.
-///
-/// `context` controls the "shadowed by built-in" annotation — see
-/// [`HelpContext`].
-pub(crate) fn render_aliases_section(
- entries: &[(String, CommandConfig, HookSource)],
- context: HelpContext,
-) -> String {
- use std::fmt::Write as _;
-
- let shadowed_names: &[&str] = match context {
- HelpContext::TopLevel => TOP_LEVEL_BUILTINS,
- HelpContext::Step => BUILTIN_STEP_COMMANDS,
- };
- let is_shadowed = |name: &str| shadowed_names.contains(&name);
-
- // Names appearing in both sources need source markers to be distinguishable.
- let mut counts: BTreeMap<&str, usize> = BTreeMap::new();
- for (name, _, _) in entries {
- *counts.entry(name.as_str()).or_insert(0) += 1;
- }
-
- let mut out = String::new();
- let _ = writeln!(out, "{}", cformat!("<bold><green>Aliases:</></>"));
- let name_width = entries.iter().map(|(n, _, _)| n.len()).max().unwrap_or(0);
- let mut first = true;
- for (name, cfg, source) in entries {
- if !first {
- out.push('\n');
- }
- first = false;
- let padding = " ".repeat(name_width - name.len());
- let summary = format_alias_summary(cfg);
- // Shadowed-by-builtin is a warning (yellow) and takes precedence over
- // the source marker so the row doesn't pile up suffixes.
- let suffix = if is_shadowed(name) {
- cformat!(" <yellow>(shadowed by built-in)</>")
- } else if counts.get(name.as_str()).copied().unwrap_or(0) > 1 {
- match source {
- HookSource::User => cformat!(" <dim>(user)</>"),
- HookSource::Project => cformat!(" <dim>(project)</>"),
- }
- } else {
- String::new()
- };
- let _ = write!(
- out,
- " {name_styled}{padding} {summary}{suffix}",
- name_styled = cformat!("<bold><cyan>{name}</></>"),
- );
- }
- out
-}
-
/// Format the configured aliases as a compact name list for `wt --help` /
/// `wt step --help`.
///
-/// Unlike [`render_aliases_section`] (which `wt config alias show` reuses for
-/// the full per-alias listing), this shows only the names — `--help` is for
-/// orientation, not inspection. A name that collides with a built-in is
-/// flagged inline because the alias never runs via that path; `context`
-/// selects which built-ins shadow (see [`HelpContext`]). A name defined in
-/// both user and project config still appears once — `wt config alias show
-/// <name>` is where the two pipelines are distinguished. Matches clap's
-/// "Commands:" styling (bold+green heading, bold+cyan names) so the section
-/// blends in. Returns the block without leading or trailing blank lines —
-/// the caller positions it.
+/// `--help` is for orientation, not inspection — so this shows only the
+/// names; `wt config alias show` prints the full per-alias definitions and
+/// the section points there. A name that collides with a built-in is flagged
+/// inline because the alias never runs via that path; `context` selects which
+/// built-ins shadow (see [`HelpContext`]). A name defined in both user and
+/// project config still appears once — `wt config alias show <name>` is where
+/// the two pipelines are distinguished. Matches clap's "Commands:" styling
+/// (bold+green heading, bold+cyan names) so the section blends in. Returns the
+/// block without leading or trailing blank lines — the caller positions it.
fn render_aliases_help_section(
entries: &[(String, CommandConfig, HookSource)],
context: HelpContext,
@@ -918,38 +854,6 @@ fn load_project_aliases_silent(repo: &Repository) -> Option<BTreeMap<String, Com
Some(config.aliases)
}
-/// One-line summary of an alias's command(s) suitable for a help listing.
-///
-/// Single-command aliases show the template's first line (with `…` if the
-/// template spans multiple lines). Pipelines show the shared named-step
-/// summary used by the "Running alias" announcement.
-fn format_alias_summary(cfg: &CommandConfig) -> String {
- // `is_pipeline()` is `steps.len() > 1`, but a single-step concurrent
- // alias (one `HookStep::Concurrent` holding several commands) would
- // fall into the else branch and hide all but the first command. Count
- // actual commands instead.
- if cfg.commands().count() > 1 {
- let step_names = step_names_from_config(cfg);
- let summary = format_pipeline_summary_from_names(&step_names, |n| n.to_string(), |_| None);
- if summary.is_empty() {
- format!("<{} steps>", cfg.commands().count())
- } else {
- summary
- }
- } else {
- let cmd = cfg
- .commands()
- .next()
- .expect("CommandConfig always contains at least one command");
- let first = cmd.template.lines().next().unwrap_or("").trim_end();
- if cmd.template.lines().count() > 1 {
- format!("{first}…")
- } else {
- first.to_string()
- }
- }
-}
-
#[cfg(test)]
mod tests {
use super::*;
@@ -1616,135 +1520,6 @@ cmd = [
}
}
- #[test]
- fn test_format_alias_summary_single_command() {
- let cfg = cfg_from_toml(r#"cmd = "echo hello""#);
- assert_eq!(format_alias_summary(&cfg), "echo hello");
- }
-
- #[test]
- fn test_format_alias_summary_multiline_gets_ellipsis() {
- let cfg = cfg_from_toml(
- r#"cmd = """
-git fetch --all --prune
-git rebase @{u}
-""""#,
- );
- assert_eq!(format_alias_summary(&cfg), "git fetch --all --prune…");
- }
-
- #[test]
- fn test_format_alias_summary_pipeline_named() {
- let cfg = cfg_from_toml(
- r#"
-cmd = [
- { install = "npm install" },
- { build = "npm run build", lint = "npm run lint" },
-]
-"#,
- );
- assert_eq!(format_alias_summary(&cfg), "install, build & lint");
- }
-
- #[test]
- fn test_format_alias_summary_concurrent_named() {
- // Single-step concurrent form: `[aliases.check]\nbuild=…\ntest=…`
- // — one step, multiple commands. Must use the pipeline formatter,
- // not fall back to "show first command's template".
- let cfg = cfg_from_toml(
- r#"
-[cmd]
-build = "cargo build"
-test = "cargo test"
-"#,
- );
- assert_eq!(format_alias_summary(&cfg), "build & test");
- }
-
- #[test]
- fn test_format_alias_summary_pipeline_all_unnamed() {
- // Anonymous pipeline entries fall back to a step count.
- let cfg = cfg_from_toml(r#"cmd = ["echo a", "echo b"]"#);
- assert_eq!(format_alias_summary(&cfg), "<2 steps>");
- }
-
- #[test]
- fn test_render_aliases_section_source_annotations() {
- // Names unique to one source have no annotation. Names defined in
- // both sources show two rows (user first, matching runtime order)
- // and each row carries a source marker so the reader can tell them
- // apart. Shadowed-by-builtin takes precedence over the source marker.
- let entries = vec![
- (
- "only-user".to_string(),
- cfg_from_toml(r#"cmd = "echo u""#),
- HookSource::User,
- ),
- (
- "only-project".to_string(),
- cfg_from_toml(r#"cmd = "echo p""#),
- HookSource::Project,
- ),
- (
- "shared".to_string(),
- cfg_from_toml(r#"cmd = "echo from-user""#),
- HookSource::User,
- ),
- (
- "shared".to_string(),
- cfg_from_toml(r#"cmd = "echo from-project""#),
- HookSource::Project,
- ),
- ];
- // Caller passes pre-sorted entries; mirror that here.
- let mut sorted = entries;
- sorted.sort_by(|a, b| a.0.cmp(&b.0).then(a.2.cmp(&b.2)));
- let rendered = render_aliases_section(&sorted, HelpContext::Step);
- let rendered = rendered.ansi_strip();
- insta::assert_snapshot!(rendered, @r"
- Aliases:
- only-project echo p
- only-user echo u
- shared echo from-user (user)
- shared echo from-project (project)
- ");
- }
-
- #[test]
- fn test_render_aliases_section_top_level_shadowing() {
- // Top-level shadowing: an alias named after a top-level built-in (e.g.
- // `list`) is unreachable from `wt list` because clap matches first.
- // Step-only built-in names (e.g. `commit`) are NOT shadowed at the top
- // level — `wt commit` runs the alias.
- let entries = vec![
- (
- "list".to_string(),
- cfg_from_toml(r#"cmd = "ls""#),
- HookSource::User,
- ),
- (
- "commit".to_string(),
- cfg_from_toml(r#"cmd = "git commit""#),
- HookSource::User,
- ),
- (
- "deploy".to_string(),
- cfg_from_toml(r#"cmd = "make deploy""#),
- HookSource::User,
- ),
- ];
- let mut sorted = entries;
- sorted.sort_by(|a, b| a.0.cmp(&b.0).then(a.2.cmp(&b.2)));
- let rendered = render_aliases_section(&sorted, HelpContext::TopLevel);
- let rendered = rendered.ansi_strip();
- insta::assert_snapshot!(rendered, @r"
- Aliases:
- commit git commit
- deploy make deploy
- list ls (shadowed by built-in)
- ");
- }
-
#[test]
fn test_render_aliases_help_section() {
// The `--help` block is just a comma-separated name list: user/project
diff --git a/src/commands/config/alias.rs b/src/commands/config/alias.rs
index e5d411d74..558f1611c 100644
--- a/src/commands/config/alias.rs
+++ b/src/commands/config/alias.rs
@@ -2,14 +2,15 @@
//!
//! Introspection and preview for aliases configured in user config
//! (`~/.config/worktrunk/config.toml`) and project config (`.config/wt.toml`).
-//! `show` with no name lists every configured alias as the `name command`
-//! `Aliases:` block, 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:`).
+//! `show <name>` prints the template text, source-labeled, with one gutter
+//! block per alias entry and `# <name>` comment lines above named pipeline
+//! steps. `show` with no name prints that block for every configured alias in
+//! name order — equivalent to `wt config alias show <name>` run for each.
+//! `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
//!
@@ -32,8 +33,7 @@ use worktrunk::git::{Repository, WorktrunkError};
use worktrunk::styling::{format_bash_with_gutter, info_message, println};
use crate::commands::alias::{
- AliasOptions, HelpContext, TOP_LEVEL_BUILTINS, load_aliases, load_aliases_for_listing,
- render_aliases_section,
+ AliasOptions, TOP_LEVEL_BUILTINS, load_aliases, load_aliases_for_listing,
};
use crate::commands::build_invalid_subcommand_error;
use crate::commands::command_executor::{
@@ -42,8 +42,8 @@ use crate::commands::command_executor::{
use crate::commands::did_you_mean;
use crate::commands::hooks::HookSource;
-/// Show the configured template(s) for an alias — or, with no name, list
-/// every configured alias.
+/// Show the configured template(s) for an alias — or, with no name, every
+/// configured alias's template(s).
///
/// When the same name is defined in both user and project config, both
/// entries are printed (user first, matching runtime execution order).
@@ -69,38 +69,54 @@ pub fn handle_alias_show(name: Option<String>) -> anyhow::Result<()> {
warn_if_shadowed(&name);
- for (i, (cfg, source)) in entries.iter().enumerate() {
- if i > 0 {
- println!();
- }
+ for (cfg, source) in &entries {
let bodies: Vec<String> = cfg.commands().map(|c| c.template.clone()).collect();
println!("{}", format_entry(&name, cfg, *source, &bodies, None));
}
Ok(())
}
-/// List every configured alias as the styled `name command` `Aliases:`
-/// block via [`render_aliases_section`]. `wt --help` shows a more compact
-/// names-only variant of the same section (`render_aliases_help_section`)
-/// and points here for this fuller listing.
+/// Show every configured alias's full definition — the same header + gutter
+/// block `wt config alias show <name>` prints, emitted for each alias in name
+/// order (and for each source when a name is defined in both, user first,
+/// matching runtime execution order). `wt --help` shows a compact names-only
+/// list (`render_aliases_help_section`) and points here for these.
///
/// 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.
+/// is where deprecations get reported. A name shadowed by a top-level
+/// built-in still gets the same stderr warning `wt config alias show <name>`
+/// emits, once per name.
fn list_aliases() -> anyhow::Result<()> {
worktrunk::config::suppress_warnings();
- let aliases = load_aliases_for_listing();
- if aliases.is_empty() {
+ let entries = load_aliases_for_listing();
+ if entries.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);
+
+ // `entries` is sorted by (name, source), so a name's entries are adjacent.
+ // Warn once per shadowed name — matching `show <name>`, which warns on the
+ // name, not per entry. The `Aliases:` names are invoked as `wt <name>`, so
+ // shadowing is judged from the top-level perspective (an alias named `list`
+ // is unreachable; one named `commit` is not — `wt commit` runs it).
+ let mut prev_name: Option<&str> = None;
+ for (name, _, _) in &entries {
+ if prev_name != Some(name.as_str()) {
+ warn_if_shadowed(name);
+ prev_name = Some(name);
+ }
+ }
+
+ let mut out = String::new();
+ for (name, cfg, source) in &entries {
+ let bodies: Vec<String> = cfg.commands().map(|c| c.template.clone()).collect();
+ out.push_str(&format_entry(name, cfg, *source, &bodies, None));
+ out.push('\n');
+ }
+ crate::help_pager::show_help_in_pager(&out, true);
Ok(())
}
@@ -178,10 +194,7 @@ pub fn handle_alias_dry_run(name: String, args: Vec<String>) -> anyhow::Result<(
let routing = format_routing_summary(&opts);
- for (i, (cfg, source)) in entries.iter().enumerate() {
- if i > 0 {
- println!();
- }
+ for (cfg, source) in &entries {
let bodies: Vec<String> = cfg
.commands()
.map(|c| render_preview(&c.template, &context_map, &repo, &name))
diff --git a/tests/integration_tests/step_alias.rs b/tests/integration_tests/step_alias.rs
index 07b81d11d..68c3f60aa 100644
--- a/tests/integration_tests/step_alias.rs
+++ b/tests/integration_tests/step_alias.rs
@@ -1779,10 +1779,11 @@ 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.
+/// `wt config alias show` with no name prints every configured alias's full
+/// definition — the same per-alias header + gutter block as `wt config alias
+/// show <name>`, emitted for each alias in name order. Names defined in both
+/// user and project config show twice (user first), and a name shadowed by a
+/// top-level built-in gets the stderr warning.
#[rstest]
fn test_config_alias_show_lists_all(mut repo: TestRepo) {
repo.write_project_config(
@@ -1815,7 +1816,7 @@ greet = "echo hi {{ branch }}"
}
/// `wt config alias show` with no name and no aliases configured prints a note
-/// rather than an empty `Aliases:` heading.
+/// rather than empty output.
#[rstest]
fn test_config_alias_show_lists_none(mut repo: TestRepo) {
repo.commit("Initial commit");
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
index 01f27d136..1fc682c70 100644
--- 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
@@ -52,11 +52,16 @@ info:
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
+○ Alias deploy (user):
+  echo from user
+○ Alias deploy (project):
+  echo from project
+○ Alias greet (user):
+  echo hi {{ branch }}
+○ Alias list (project):
+  echo custom list
+○ Alias only-project (project):
+  echo p
----- stderr -----
+▲ Alias list is shadowed by built-in wt list
diff --git a/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_user_and_project.snap b/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_user_and_project.snap
index d0f4a57b0..7940d623f 100644
--- a/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_user_and_project.snap
+++ b/tests/snapshots/integration__integration_tests__step_alias__config_alias_show_user_and_project.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: true
@@ -46,7 +55,6 @@ exit_code: 0
----- stdout -----
○ Alias deploy (user):
  echo from user
-
○ Alias deploy (project):
  echo from project
diff --git a/tests/snapshots/integration__integration_tests__step_alias__user_and_project_append.snap b/tests/snapshots/integration__integration_tests__step_alias__user_and_project_append.snap
index 166ff14d7..48077934b 100644
--- a/tests/snapshots/integration__integration_tests__step_alias__user_and_project_append.snap
+++ b/tests/snapshots/integration__integration_tests__step_alias__user_and_project_append.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: true
@@ -46,7 +55,6 @@ exit_code: 0
----- stdout -----
○ Alias shared (user) would run:
  echo user-version
-
○ Alias shared (project) would run:
  echo project-version