Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
feat: Add customizable command name for shell integration
Maximilian Roose0303ce17ba7
diff --git a/src/cli.rs b/src/cli.rsindex c3018ef22..ebcdd4632 100644--- a/src/cli.rs+++ b/src/cli.rs@@ -4,6 +4,9 @@ use worktrunk::HookType;use crate::commands::Shell;+/// Default command name for worktrunk+const DEFAULT_COMMAND_NAME: &str = "wt";+fn version_str() -> &'static str {static VERSION: OnceLock<String> = OnceLock::new();VERSION.get_or_init(|| {@@ -99,6 +102,10 @@ Oil Shell (~/.config/oil/oshrc):/// Skip confirmation prompt#[arg(short, long)]force: bool,++ /// Command name to use (defaults to 'wt')+ #[arg(long, default_value = DEFAULT_COMMAND_NAME)]+ command_name: String,},}@@ -194,6 +201,10 @@ pub enum Commands {Init {/// Shell to generate code forshell: Shell,++ /// Command name to use (defaults to 'wt')+ #[arg(long, default_value = DEFAULT_COMMAND_NAME)]+ command_name: String,},/// Manage configurationdiff --git a/src/commands/configure_shell.rs b/src/commands/configure_shell.rsindex 9c9de26cd..953f82a6e 100644--- a/src/commands/configure_shell.rs+++ b/src/commands/configure_shell.rs@@ -46,9 +46,10 @@ impl ConfigAction {pub fn handle_configure_shell(shell_filter: Option<Shell>,skip_confirmation: bool,+ command_name: String,) -> Result<Vec<ConfigureResult>, String> {// First, do a dry-run to see what would be changed- let preview_results = scan_shell_configs(shell_filter, true)?;+ let preview_results = scan_shell_configs(shell_filter, true, &command_name)?;// If nothing to do, return earlyif preview_results.is_empty() {@@ -71,12 +72,13 @@ pub fn handle_configure_shell(}// User confirmed (or --force flag was used), now actually apply the changes- scan_shell_configs(shell_filter, false)+ scan_shell_configs(shell_filter, false, &command_name)}fn scan_shell_configs(shell_filter: Option<Shell>,dry_run: bool,+ command_name: &str,) -> Result<Vec<ConfigureResult>, String> {let shells = if let Some(shell) = shell_filter {vec![shell]@@ -98,7 +100,7 @@ fn scan_shell_configs(let mut checked_paths = Vec::new();for shell in shells {- let paths = shell.config_paths("wt");+ let paths = shell.config_paths(command_name);// Find the first existing config filelet target_path = paths.iter().find(|p| p.exists());@@ -125,7 +127,13 @@ fn scan_shell_configs(if should_configure {let path = target_path.or_else(|| paths.first());if let Some(path) = path {- match configure_shell_file(shell, path, dry_run, shell_filter.is_some()) {+ match configure_shell_file(+ shell,+ path,+ dry_run,+ shell_filter.is_some(),+ command_name,+ ) {Ok(Some(result)) => results.push(result),Ok(None) => {} // No action neededErr(e) => {@@ -160,16 +168,24 @@ fn configure_shell_file(path: &Path,dry_run: bool,explicit_shell: bool,+ command_name: &str,) -> Result<Option<ConfigureResult>, String> {// Get a summary of the shell integration for display- let integration_summary = shell.integration_summary("wt");+ let integration_summary = shell.integration_summary(command_name);// The actual line we write to the config file- let config_content = shell.config_line("wt");+ let config_content = shell.config_line(command_name);// For Fish, we write to a separate conf.d/ fileif matches!(shell, Shell::Fish) {- return configure_fish_file(shell, path, &config_content, dry_run, explicit_shell);+ return configure_fish_file(+ shell,+ path,+ &config_content,+ dry_run,+ explicit_shell,+ &integration_summary,+ );}// For other shells, check if file exists@@ -264,10 +280,8 @@ fn configure_fish_file(content: &str,dry_run: bool,explicit_shell: bool,+ integration_summary: &str,) -> Result<Option<ConfigureResult>, String> {- // Get a summary of the shell integration for display- let integration_summary = shell.integration_summary("wt");-// For Fish, we write to conf.d/{cmd_prefix}.fish (separate file)// Check if it already exists and has our integration@@ -281,7 +295,7 @@ fn configure_fish_file(shell,path: path.to_path_buf(),action: ConfigAction::AlreadyExists,- config_line: integration_summary.clone(),+ config_line: integration_summary.to_string(),}));}}@@ -307,7 +321,7 @@ fn configure_fish_file(} else {ConfigAction::WouldCreate},- config_line: integration_summary.clone(),+ config_line: integration_summary.to_string(),}));}@@ -325,7 +339,7 @@ fn configure_fish_file(shell,path: path.to_path_buf(),action: ConfigAction::Created,- config_line: integration_summary.clone(),+ config_line: integration_summary.to_string(),}))}diff --git a/src/commands/init.rs b/src/commands/init.rsindex 820929a84..72cd94ad8 100644--- a/src/commands/init.rs+++ b/src/commands/init.rs@@ -3,8 +3,12 @@ use clap_complete::{Shell as CompletionShell, generate};use worktrunk::shell;use worktrunk::styling::{ERROR, ERROR_EMOJI, println};-pub fn handle_init(shell: shell::Shell, cli_cmd: &mut Command) -> Result<(), String> {- let init = shell::ShellInit::new(shell, "wt".to_string());+pub fn handle_init(+ shell: shell::Shell,+ command_name: String,+ cli_cmd: &mut Command,+) -> Result<(), String> {+ let init = shell::ShellInit::new(shell, command_name.clone());// Generate shell integration codelet integration_output = init@@ -33,7 +37,12 @@ pub fn handle_init(shell: shell::Shell, cli_cmd: &mut Command) -> Result<(), Str"supports_completion() check above ensures we only reach this for supported shells"),};- generate(completion_shell, cli_cmd, "wt", &mut completion_output);+ generate(+ completion_shell,+ cli_cmd,+ &command_name,+ &mut completion_output,+ );// Filter out lines for hidden commands (completion, complete) and hidden flags (--internal)let completion_str = String::from_utf8_lossy(&completion_output);@@ -84,9 +93,14 @@ pub fn handle_init(shell: shell::Shell, cli_cmd: &mut Command) -> Result<(), Str// For Zsh: Guard the final compdef call to avoid errors when completion system isn't loaded// Not all users have compinit in their .zshrc, and --no-rcs mode never loads it- let line = if matches!(shell, shell::Shell::Zsh) && line.trim() == "compdef _wt wt" {+ let line = if matches!(shell, shell::Shell::Zsh)+ && line.trim() == format!("compdef _{} {}", command_name, command_name)+ {// Replace with guarded version that checks if compdef exists- " if (( $+functions[compdef] )); then compdef _wt wt; fi".to_string()+ format!(+ " if (( $+functions[compdef] )); then compdef _{} {}; fi",+ command_name, command_name+ )} else {line};diff --git a/src/main.rs b/src/main.rsindex be799e65b..b7f086cab 100644--- a/src/main.rs+++ b/src/main.rs@@ -101,16 +101,23 @@ fn main() {.init();let result = match cli.command {- Commands::Init { shell } => {+ Commands::Init {+ shell,+ command_name,+ } => {let mut cli_cmd = Cli::command();- handle_init(shell, &mut cli_cmd).git_err()+ handle_init(shell, command_name, &mut cli_cmd).git_err()}Commands::Config { action } => match action {ConfigCommand::Init => handle_config_init(),ConfigCommand::List => handle_config_list(),ConfigCommand::RefreshCache => handle_config_refresh_cache(),- ConfigCommand::Shell { shell, force } => {- handle_configure_shell(shell, force)+ ConfigCommand::Shell {+ shell,+ force,+ command_name,+ } => {+ handle_configure_shell(shell, force, command_name).map(|results| {use anstyle::{AnsiColor, Color};diff --git a/templates/bash.sh b/templates/bash.shindex 04eb7adca..5453420eb 100644--- a/templates/bash.sh+++ b/templates/bash.sh@@ -1,10 +1,10 @@# worktrunk shell integration for {{ shell_name }}-# Only initialize if wt is available (in PATH or via WORKTRUNK_BIN)-if command -v wt >/dev/null 2>&1 || [[ -n "${WORKTRUNK_BIN:-}" ]]; then- # Use WORKTRUNK_BIN if set, otherwise default to 'wt'- # This allows testing development builds: export WORKTRUNK_BIN=./target/debug/wt- _WORKTRUNK_CMD="${WORKTRUNK_BIN:-wt}"+# Only initialize if {{ cmd_prefix }} is available (in PATH or via WORKTRUNK_BIN)+if command -v {{ cmd_prefix }} >/dev/null 2>&1 || [[ -n "${WORKTRUNK_BIN:-}" ]]; then+ # Use WORKTRUNK_BIN if set, otherwise default to '{{ cmd_prefix }}'+ # This allows testing development builds: export WORKTRUNK_BIN=./target/debug/{{ cmd_prefix }}+ _WORKTRUNK_CMD="${WORKTRUNK_BIN:-{{ cmd_prefix }}}"# Helper function to parse wt output and handle directives# Directives are NUL-terminated to support multi-line commands@@ -71,7 +71,7 @@ if command -v wt >/dev/null 2>&1 || [[ -n "${WORKTRUNK_BIN:-}" ]]; then_WORKTRUNK_CMD="$saved_cmd"return 1fi- _WORKTRUNK_CMD="./target/debug/wt"+ _WORKTRUNK_CMD="./target/debug/{{ cmd_prefix }}"fi# Force colors if wrapper's stdout is a TTY (respects NO_COLOR and explicit CLICOLOR_FORCE)diff --git a/templates/elvish.elv b/templates/elvish.elvindex 750edf9d6..526592ab8 100644--- a/templates/elvish.elv+++ b/templates/elvish.elv@@ -1,10 +1,10 @@# worktrunk shell integration for elvish-# Only initialize if wt is available (in PATH or via WORKTRUNK_BIN)-if (or (has-external wt) (has-env WORKTRUNK_BIN)) {- # Use WORKTRUNK_BIN if set, otherwise default to 'wt'- # This allows testing development builds: set E:WORKTRUNK_BIN = ./target/debug/wt- var _WORKTRUNK_CMD = wt+# Only initialize if {{ cmd_prefix }} is available (in PATH or via WORKTRUNK_BIN)+if (or (has-external {{ cmd_prefix }}) (has-env WORKTRUNK_BIN)) {+ # Use WORKTRUNK_BIN if set, otherwise default to '{{ cmd_prefix }}'+ # This allows testing development builds: set E:WORKTRUNK_BIN = ./target/debug/{{ cmd_prefix }}+ var _WORKTRUNK_CMD = {{ cmd_prefix }}if (has-env WORKTRUNK_BIN) {set _WORKTRUNK_CMD = $E:WORKTRUNK_BIN}@@ -101,7 +101,7 @@ if (or (has-external wt) (has-env WORKTRUNK_BIN)) {echo "Error: cargo build failed" >&2fail "cargo build failed"}- set _WORKTRUNK_CMD = ./target/debug/wt+ set _WORKTRUNK_CMD = ./target/debug/{{ cmd_prefix }}}# Force colors if wrapper's stdout is a TTY (respects NO_COLOR and explicit CLICOLOR_FORCE)diff --git a/templates/fish.fish b/templates/fish.fishindex 10973709b..7e3d8c35d 100644--- a/templates/fish.fish+++ b/templates/fish.fish@@ -3,7 +3,7 @@# Only initialize if {{ cmd_prefix }} is available (in PATH or via WORKTRUNK_BIN)if type -q {{ cmd_prefix }}; or set -q WORKTRUNK_BIN# Use WORKTRUNK_BIN if set, otherwise default to '{{ cmd_prefix }}'- # This allows testing development builds: set -x WORKTRUNK_BIN ./target/debug/wt+ # This allows testing development builds: set -x WORKTRUNK_BIN ./target/debug/{{ cmd_prefix }}if set -q WORKTRUNK_BINset -g _WORKTRUNK_CMD $WORKTRUNK_BINelse@@ -107,7 +107,7 @@ if type -q {{ cmd_prefix }}; or set -q WORKTRUNK_BINset _WORKTRUNK_CMD $saved_cmdreturn 1end- set _WORKTRUNK_CMD ./target/debug/wt+ set _WORKTRUNK_CMD ./target/debug/{{ cmd_prefix }}end# Force colors if wrapper's stdout is a TTY (respects NO_COLOR and explicit CLICOLOR_FORCE)diff --git a/templates/nushell.nu b/templates/nushell.nuindex d36034ea4..9f9605d61 100644--- a/templates/nushell.nu+++ b/templates/nushell.nu@@ -1,10 +1,10 @@# worktrunk shell integration for nushell-# Only initialize if wt is available (in PATH or via WORKTRUNK_BIN)-if (which wt | is-not-empty) or ($env.WORKTRUNK_BIN? | is-not-empty) {- # Use WORKTRUNK_BIN if set, otherwise default to 'wt'- # This allows testing development builds: $env.WORKTRUNK_BIN = ./target/debug/wt- let _WORKTRUNK_CMD = (if ($env.WORKTRUNK_BIN? | is-not-empty) { $env.WORKTRUNK_BIN } else { "wt" })+# Only initialize if {{ cmd_prefix }} is available (in PATH or via WORKTRUNK_BIN)+if (which {{ cmd_prefix }} | is-not-empty) or ($env.WORKTRUNK_BIN? | is-not-empty) {+ # Use WORKTRUNK_BIN if set, otherwise default to '{{ cmd_prefix }}'+ # This allows testing development builds: $env.WORKTRUNK_BIN = ./target/debug/{{ cmd_prefix }}+ let _WORKTRUNK_CMD = (if ($env.WORKTRUNK_BIN? | is-not-empty) { $env.WORKTRUNK_BIN } else { "{{ cmd_prefix }}" })# Helper function to parse wt output and handle directives# Directives are NUL-terminated to support multi-line commands@@ -73,7 +73,7 @@ if (which wt | is-not-empty) or ($env.WORKTRUNK_BIN? | is-not-empty) {print "Error: cargo build failed"return 1}- "./target/debug/wt"+ "./target/debug/{{ cmd_prefix }}"} else {$_WORKTRUNK_CMD}diff --git a/templates/powershell.ps1 b/templates/powershell.ps1index 45e236b42..d4630605f 100644--- a/templates/powershell.ps1+++ b/templates/powershell.ps1@@ -1,10 +1,10 @@# worktrunk shell integration for PowerShell-# Only initialize if wt is available (in PATH or via WORKTRUNK_BIN)-if ((Get-Command wt -ErrorAction SilentlyContinue) -or $env:WORKTRUNK_BIN) {- # Use WORKTRUNK_BIN if set, otherwise default to 'wt'- # This allows testing development builds: $env:WORKTRUNK_BIN = "./target/debug/wt"- $script:_WORKTRUNK_CMD = if ($env:WORKTRUNK_BIN) { $env:WORKTRUNK_BIN } else { "wt" }+# Only initialize if {{ cmd_prefix }} is available (in PATH or via WORKTRUNK_BIN)+if ((Get-Command {{ cmd_prefix }} -ErrorAction SilentlyContinue) -or $env:WORKTRUNK_BIN) {+ # Use WORKTRUNK_BIN if set, otherwise default to '{{ cmd_prefix }}'+ # This allows testing development builds: $env:WORKTRUNK_BIN = "./target/debug/{{ cmd_prefix }}"+ $script:_WORKTRUNK_CMD = if ($env:WORKTRUNK_BIN) { $env:WORKTRUNK_BIN } else { "{{ cmd_prefix }}" }# Helper function to parse wt output and handle directives# Directives are NUL-terminated to support multi-line commands@@ -122,7 +122,7 @@ if ((Get-Command wt -ErrorAction SilentlyContinue) -or $env:WORKTRUNK_BIN) {Write-Error "Error: cargo build failed"return 1}- $cmd = "./target/debug/wt"+ $cmd = "./target/debug/{{ cmd_prefix }}"} else {$cmd = $script:_WORKTRUNK_CMD}diff --git a/templates/xonsh.xsh b/templates/xonsh.xshindex 3869a002e..8074509b3 100644--- a/templates/xonsh.xsh+++ b/templates/xonsh.xsh@@ -1,13 +1,13 @@# worktrunk shell integration for xonsh-# Only initialize if wt is available (in PATH or via WORKTRUNK_BIN)+# Only initialize if {{ cmd_prefix }} is available (in PATH or via WORKTRUNK_BIN)import shutilimport osimport sys-if shutil.which("wt") is not None or os.environ.get('WORKTRUNK_BIN'):- # Use WORKTRUNK_BIN if set, otherwise default to 'wt'- # This allows testing development builds: $WORKTRUNK_BIN = ./target/debug/wt- _WORKTRUNK_CMD = os.environ.get('WORKTRUNK_BIN', 'wt')+if shutil.which("{{ cmd_prefix }}") is not None or os.environ.get('WORKTRUNK_BIN'):+ # Use WORKTRUNK_BIN if set, otherwise default to '{{ cmd_prefix }}'+ # This allows testing development builds: $WORKTRUNK_BIN = ./target/debug/{{ cmd_prefix }}+ _WORKTRUNK_CMD = os.environ.get('WORKTRUNK_BIN', '{{ cmd_prefix }}')def _wt_exec(args, cmd=None):"""Helper function to parse wt output and handle directives@@ -98,7 +98,7 @@ if shutil.which("wt") is not None or os.environ.get('WORKTRUNK_BIN'):if build_result.returncode != 0:print("Error: cargo build failed", file=sys.stderr)return 1- cmd = "./target/debug/wt"+ cmd = "./target/debug/{{ cmd_prefix }}"else:cmd = _WORKTRUNK_CMDdiff --git a/templates/zsh.zsh b/templates/zsh.zshindex d4d89710a..53a11d055 100644--- a/templates/zsh.zsh+++ b/templates/zsh.zsh@@ -1,10 +1,10 @@# worktrunk shell integration for zsh-# Only initialize if wt is available (in PATH or via WORKTRUNK_BIN)-if command -v wt >/dev/null 2>&1 || [[ -n "${WORKTRUNK_BIN:-}" ]]; then- # Use WORKTRUNK_BIN if set, otherwise default to 'wt'- # This allows testing development builds: export WORKTRUNK_BIN=./target/debug/wt- _WORKTRUNK_CMD="${WORKTRUNK_BIN:-wt}"+# Only initialize if {{ cmd_prefix }} is available (in PATH or via WORKTRUNK_BIN)+if command -v {{ cmd_prefix }} >/dev/null 2>&1 || [[ -n "${WORKTRUNK_BIN:-}" ]]; then+ # Use WORKTRUNK_BIN if set, otherwise default to '{{ cmd_prefix }}'+ # This allows testing development builds: export WORKTRUNK_BIN=./target/debug/{{ cmd_prefix }}+ _WORKTRUNK_CMD="${WORKTRUNK_BIN:-{{ cmd_prefix }}}"# Helper function to parse wt output and handle directives# Directives are NUL-terminated to support multi-line commands@@ -76,7 +76,7 @@ if command -v wt >/dev/null 2>&1 || [[ -n "${WORKTRUNK_BIN:-}" ]]; then_WORKTRUNK_CMD="$saved_cmd"return 1fi- _WORKTRUNK_CMD="./target/debug/wt"+ _WORKTRUNK_CMD="./target/debug/{{ cmd_prefix }}"fi# Force colors if wrapper's stdout is a TTY (respects NO_COLOR and explicit CLICOLOR_FORCE)diff --git a/tests/snapshots/integration__integration_tests__init__init_bash.snap b/tests/snapshots/integration__integration_tests__init__init_bash.snapindex e0dd95f52..b10285728 100644--- a/tests/snapshots/integration__integration_tests__init__init_bash.snap+++ b/tests/snapshots/integration__integration_tests__init__init_bash.snap@@ -16,7 +16,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpGhsyJ7/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp4sEkZq/test-config.toml---success: trueexit_code: 0@@ -420,7 +420,7 @@ _wt() {return 0;;wt__config__shell)- opts="-f -v -h --shell --force --verbose --help"+ opts="-f -v -h --shell --force --command-name --verbose --help"if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; thenCOMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )return 0@@ -430,6 +430,10 @@ _wt() {COMPREPLY=($(compgen -W "bash elvish fish nushell oil powershell xonsh zsh" -- "${cur}"))return 0;;+ --command-name)+ COMPREPLY=($(compgen -f "${cur}"))+ return 0+ ;;*)COMPREPLY=();;@@ -438,12 +442,16 @@ _wt() {return 0;;wt__init)- opts="-v -h --verbose --help bash elvish fish nushell oil powershell xonsh zsh"+ opts="-v -h --command-name --verbose --help bash elvish fish nushell oil powershell xonsh zsh"if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; thenCOMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )return 0ficase "${prev}" in+ --command-name)+ COMPREPLY=($(compgen -f "${cur}"))+ return 0+ ;;*)COMPREPLY=();;diff --git a/tests/snapshots/integration__integration_tests__init__init_fish.snap b/tests/snapshots/integration__integration_tests__init__init_fish.snapindex 109dafc86..eca021b87 100644--- a/tests/snapshots/integration__integration_tests__init__init_fish.snap+++ b/tests/snapshots/integration__integration_tests__init__init_fish.snap@@ -16,7 +16,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmp9iNHoU/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmprUHMIQ/test-config.toml---success: trueexit_code: 0@@ -205,6 +205,7 @@ complete -c wt -n "__fish_wt_needs_command" -f -a "list" -d 'List worktrees andcomplete -c wt -n "__fish_wt_needs_command" -f -a "switch" -d 'Switch to a worktree'complete -c wt -n "__fish_wt_needs_command" -f -a "remove" -d 'Finish current worktree, returning to primary if current'complete -c wt -n "__fish_wt_needs_command" -f -a "merge" -d 'Merge worktree into target branch'+complete -c wt -n "__fish_wt_using_subcommand init" -l command-name -d 'Command name to use (defaults to \'wt\')' -rcomplete -c wt -n "__fish_wt_using_subcommand init" -s v -l verbose -d 'Enable verbose output (show git commands and debug info)'complete -c wt -n "__fish_wt_using_subcommand init" -s h -l help -d 'Print help'complete -c wt -n "__fish_wt_using_subcommand config; and not __fish_seen_subcommand_from init list refresh-cache shell" -s v -l verbose -d 'Enable verbose output (show git commands and debug info)'@@ -227,6 +228,7 @@ oil\t''powershell\t''xonsh\t''zsh\t''"+complete -c wt -n "__fish_wt_using_subcommand config; and __fish_seen_subcommand_from shell" -l command-name -d 'Command name to use (defaults to \'wt\')' -rcomplete -c wt -n "__fish_wt_using_subcommand config; and __fish_seen_subcommand_from shell" -s f -l force -d 'Skip confirmation prompt'complete -c wt -n "__fish_wt_using_subcommand config; and __fish_seen_subcommand_from shell" -s v -l verbose -d 'Enable verbose output (show git commands and debug info)'complete -c wt -n "__fish_wt_using_subcommand config; and __fish_seen_subcommand_from shell" -s h -l help -d 'Print help (see more with \'--help\')'diff --git a/tests/snapshots/integration__integration_tests__init__init_zsh.snap b/tests/snapshots/integration__integration_tests__init__init_zsh.snapindex 9d2900055..194584f96 100644--- a/tests/snapshots/integration__integration_tests__init__init_zsh.snap+++ b/tests/snapshots/integration__integration_tests__init__init_zsh.snap@@ -16,7 +16,7 @@ info:LANG: CLC_ALL: CSOURCE_DATE_EPOCH: "1761609600"- WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpKY05V9/test-config.toml+ WORKTRUNK_CONFIG_PATH: /var/folders/wf/s6ycxvvs4ln8qsdbfx40hnc40000gn/T/.tmpIZkO2j/test-config.toml---success: trueexit_code: 0@@ -173,6 +173,7 @@ _wt() {case $line[1] in(init)_arguments "${_arguments_options[@]}" : \+'--command-name=[Command name to use (defaults to '\''wt'\'')]:COMMAND_NAME:_default' \'-v[Enable verbose output (show git commands and debug info)]' \'--verbose[Enable verbose output (show git commands and debug info)]' \'-h[Print help]' \@@ -223,6 +224,7 @@ _arguments "${_arguments_options[@]}" : \(shell)_arguments "${_arguments_options[@]}" : \'--shell=[Specific shell to configure (default\: all shells with existing config files)]:SHELL:(bash elvish fish nushell oil powershell xonsh zsh)' \+'--command-name=[Command name to use (defaults to '\''wt'\'')]:COMMAND_NAME:_default' \'-f[Skip confirmation prompt]' \'--force[Skip confirmation prompt]' \'-v[Enable verbose output (show git commands and debug info)]' \