[INFO] cloning repository https://github.com/troydai/gwt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/troydai/gwt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftroydai%2Fgwt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftroydai%2Fgwt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7e684d7d9c050093269cac8c190f7311ec311331 [INFO] testing troydai/gwt against master#0d162b25edd5bf0dba9a22e83b614f1113e90474 for pr-150681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftroydai%2Fgwt" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-4-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/troydai/gwt [INFO] finished tweaking git repo https://github.com/troydai/gwt [INFO] tweaked toml for git repo https://github.com/troydai/gwt written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/troydai/gwt on toolchain 0d162b25edd5bf0dba9a22e83b614f1113e90474 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/troydai/gwt already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded shell-words v1.1.1 [INFO] [stderr] Downloaded clap_complete v4.5.64 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2b623537132713eb491e80dee776a401aff92ba1029ee3fabac4b2dabf5f2216 [INFO] running `Command { std: "docker" "start" "-a" "2b623537132713eb491e80dee776a401aff92ba1029ee3fabac4b2dabf5f2216", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2b623537132713eb491e80dee776a401aff92ba1029ee3fabac4b2dabf5f2216", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b623537132713eb491e80dee776a401aff92ba1029ee3fabac4b2dabf5f2216", kill_on_drop: false }` [INFO] [stdout] 2b623537132713eb491e80dee776a401aff92ba1029ee3fabac4b2dabf5f2216 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35c16eedd8794909efce7ae0f4f9a5ccea349c8316ea80ce52059e006fff43b9 [INFO] running `Command { std: "docker" "start" "-a" "35c16eedd8794909efce7ae0f4f9a5ccea349c8316ea80ce52059e006fff43b9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.104 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling clap_builder v4.5.53 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling winnow v0.7.14 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling shell-words v1.1.1 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling indexmap v2.12.1 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling tempfile v3.24.0 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling dialoguer v0.11.0 [INFO] [stderr] Compiling clap v4.5.53 [INFO] [stderr] Compiling clap_complete v4.5.64 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling gwt v0.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 34.69s [INFO] running `Command { std: "docker" "inspect" "35c16eedd8794909efce7ae0f4f9a5ccea349c8316ea80ce52059e006fff43b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35c16eedd8794909efce7ae0f4f9a5ccea349c8316ea80ce52059e006fff43b9", kill_on_drop: false }` [INFO] [stdout] 35c16eedd8794909efce7ae0f4f9a5ccea349c8316ea80ce52059e006fff43b9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aa4593c72f6d99436ccc2b35018e0c5af766d9ea7f202d094540356a75806bab [INFO] running `Command { std: "docker" "start" "-a" "aa4593c72f6d99436ccc2b35018e0c5af766d9ea7f202d094540356a75806bab", kill_on_drop: false }` [INFO] [stderr] Compiling gwt v0.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.21s [INFO] running `Command { std: "docker" "inspect" "aa4593c72f6d99436ccc2b35018e0c5af766d9ea7f202d094540356a75806bab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa4593c72f6d99436ccc2b35018e0c5af766d9ea7f202d094540356a75806bab", kill_on_drop: false }` [INFO] [stdout] aa4593c72f6d99436ccc2b35018e0c5af766d9ea7f202d094540356a75806bab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 80893a998fdaad71711f68474e98105096da989e058fbd197d3f2114c3aa52b0 [INFO] running `Command { std: "docker" "start" "-a" "80893a998fdaad71711f68474e98105096da989e058fbd197d3f2114c3aa52b0", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/gwtree-fe9b5419423c637c) [INFO] [stdout] [INFO] [stdout] running 65 tests [INFO] [stdout] test command::config::tests::test_config_commands_setup_variant ... ok [INFO] [stdout] # Print an optspec for argparse to handle cmd's options that are independent of any subcommand. [INFO] [stdout] function __fish_gwt_global_optspecs [INFO] [stdout] string join \n h/help [INFO] [stdout] end [INFO] [stdout] [INFO] [stdout] function __fish_gwt_needs_command [INFO] [stdout] # Figure out if the current invocation already has a command. [INFO] [stdout] set -l cmd (commandline -opc) [INFO] [stdout] set -e cmd[1] [INFO] [stdout] argparse -s (__fish_gwt_global_optspecs) -- $cmd 2>/dev/null [INFO] [stdout] or return [INFO] [stdout] if set -q argv[1] [INFO] [stdout] # Also print the command, so this can be used to figure out what it is. [INFO] [stdout] echo $argv[1] [INFO] [stdout] return 1 [INFO] [stdout] end [INFO] [stdout] return 0 [INFO] [stdout] end [INFO] [stdout] [INFO] [stdout] function __fish_gwt_using_subcommand [INFO] [stdout] set -l cmd (__fish_gwt_needs_command) [INFO] [stdout] test -z "$cmd" [INFO] [stdout] and return 1 [INFO] [stdout] contains -- $cmd[1] $argv [INFO] [stdout] end [INFO] [stdout] [INFO] [stdout] complete -c gwt -n "__fish_gwt_needs_command" -s h -l help -d 'Print help' [INFO] [stdout] complete -c gwt -n "__fish_gwt_needs_command" -f -a "config" -d 'Configure gwt' [INFO] [stdout] complete -c gwt -n "__fish_gwt_needs_command" -f -a "ls" -d 'List all worktrees' [INFO] [stdout] complete -c gwt -n "__fish_gwt_needs_command" -f -a "sw" -d 'Switch to an existing worktree for a branch (prints path on success)' [INFO] [stdout] complete -c gwt -n "__fish_gwt_needs_command" -f -a "rm" -d 'Remove a worktree by branch name' [INFO] [stdout] complete -c gwt -n "__fish_gwt_needs_command" -f -a "init" -d 'Output shell integration code for a given shell (bash, zsh, fish)' [INFO] [stdout] complete -c gwt -n "__fish_gwt_needs_command" -f -a "current" -d 'Print current worktree and branch information' [INFO] [stdout] complete -c gwt -n "__fish_gwt_needs_command" -f -a "completion" -d 'Generate shell completion scripts' [INFO] [stdout] complete -c gwt -n "__fish_gwt_needs_command" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand config; and not __fish_seen_subcommand_from view setup help" -s h -l help -d 'Print help' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand config; and not __fish_seen_subcommand_from view setup help" -f -a "view" -d 'View the current configuration file path and contents' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand config; and not __fish_seen_subcommand_from view setup help" -f -a "setup" -d 'Reset the configuration' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand config; and not __fish_seen_subcommand_from view setup help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand config; and __fish_seen_subcommand_from view" -s h -l help -d 'Print help' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand config; and __fish_seen_subcommand_from setup" -s h -l help -d 'Print help' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand config; and __fish_seen_subcommand_from help" -f -a "view" -d 'View the current configuration file path and contents' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand config; and __fish_seen_subcommand_from help" -f -a "setup" -d 'Reset the configuration' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand config; and __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand ls" -l full -d 'Show full branch names without truncation' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand ls" -l raw -d 'Output only branch names, one per line (for shell completion)' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand ls" -s h -l help -d 'Print help' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand sw" -l remote -d 'Specify the remote to resolve ambiguity when multiple remotes have the same branch name' -r [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand sw" -s b -l create-branch -d 'Create a new branch' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand sw" -s m -l main -d 'Switch to the main branch (main or master)' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand sw" -s h -l help -d 'Print help' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand rm" -s b -l delete-branch -d 'Delete the branch after removing the worktree' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand rm" -s B -l force-delete-branch -d 'Force delete the branch (use -D instead of -d)' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand rm" -s h -l help -d 'Print help' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand init" -s h -l help -d 'Print help' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand current" -s h -l help -d 'Print help' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand completion" -s h -l help -d 'Print help' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand help; and not __fish_seen_subcommand_from config ls sw rm init current completion help" -f -a "config" -d 'Configure gwt' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand help; and not __fish_seen_subcommand_from config ls sw rm init current completion help" -f -a "ls" -d 'List all worktrees' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand help; and not __fish_seen_subcommand_from config ls sw rm init current completion help" -f -a "sw" -d 'Switch to an existing worktree for a branch (prints path on success)' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand help; and not __fish_seen_subcommand_from config ls sw rm init current completion help" -f -a "rm" -d 'Remove a worktree by branch name' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand help; and not __fish_seen_subcommand_from config ls sw rm init current completion help" -f -a "init" -d 'Output shell integration code for a given shell (bash, zsh, fish)' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand help; and not __fish_seen_subcommand_from config ls sw rm init current completion help" -f -a "current" -d 'Print current worktree and branch information' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand help; and not __fish_seen_subcommand_from config ls sw rm init current completion help" -f -a "completion" -d 'Generate shell completion scripts' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand help; and not __fish_seen_subcommand_from config ls sw rm init current completion help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand help; and __fish_seen_subcommand_from config" -f -a "view" -d 'View the current configuration file path and contents' [INFO] [stdout] complete -c gwt -n "__fish_gwt_using_subcommand help; and __fish_seen_subcommand_from config" -f -a "setup" -d 'Reset the configuration' [INFO] [stdout] test command::config::tests::test_execute_config_view_file_not_found ... _gwt() { [INFO] [stdout] local i cur prev opts cmd [INFO] [stdout] COMPREPLY=() [INFO] [stdout] if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then [INFO] [stdout] cur="$2" [INFO] [stdout] else [INFO] [stdout] cur="${COMP_WORDS[COMP_CWORD]}" [INFO] [stdout] fi [INFO] [stdout] prev="$3" [INFO] [stdout] cmd="" [INFO] [stdout] opts="" [INFO] [stdout] [INFO] [stdout] for i in "${COMP_WORDS[@]:0:COMP_CWORD}" [INFO] [stdout] do [INFO] [stdout] case "${cmd},${i}" in [INFO] [stdout] ",$1") [INFO] [stdout] cmd="gwt" [INFO] [stdout] ;; [INFO] [stdout] gwt,completion) [INFO] [stdout] cmd="gwt__completion" [INFO] [stdout] ;; [INFO] [stdout] gwt,config) [INFO] [stdout] cmd="gwt__config" [INFO] [stdout] ;; [INFO] [stdout] gwt,current) [INFO] [stdout] cmd="gwt__current" [INFO] [stdout] ;; [INFO] [stdout] gwt,help) [INFO] [stdout] cmd="gwt__help" [INFO] [stdout] ;; [INFO] [stdout] gwt,init) [INFO] [stdout] cmd="gwt__init" [INFO] [stdout] ;; [INFO] [stdout] gwt,ls) [INFO] [stdout] cmd="gwt__ls" [INFO] [stdout] ;; [INFO] [stdout] gwt,rm) [INFO] [stdout] cmd="gwt__rm" [INFO] [stdout] ;; [INFO] [stdout] gwt,sw) [INFO] [stdout] cmd="gwt__sw" [INFO] [stdout] ;; [INFO] [stdout] gwt__config,help) [INFO] [stdout] cmd="gwt__config__help" [INFO] [stdout] ;; [INFO] [stdout] gwt__config,setup) [INFO] [stdout] cmd="gwt__config__setup" [INFO] [stdout] ;; [INFO] [stdout] gwt__config,view) [INFO] [stdout] cmd="gwt__config__view" [INFO] [stdout] ;; [INFO] [stdout] gwt__config__help,help) [INFO] [stdout] cmd="gwt__config__help__help" [INFO] [stdout] ;; [INFO] [stdout] gwt__config__help,setup) [INFO] [stdout] cmd="gwt__config__help__setup" [INFO] [stdout] ;; [INFO] [stdout] gwt__config__help,view) [INFO] [stdout] cmd="gwt__config__help__view" [INFO] [stdout] ;; [INFO] [stdout] gwt__help,completion) [INFO] [stdout] cmd="gwt__help__completion" [INFO] [stdout] ;; [INFO] [stdout] gwt__help,config) [INFO] [stdout] cmd="gwt__help__config" [INFO] [stdout] ;; [INFO] [stdout] gwt__help,current) [INFO] [stdout] cmd="gwt__help__current" [INFO] [stdout] ;; [INFO] [stdout] gwt__help,help) [INFO] [stdout] cmd="gwt__help__help" [INFO] [stdout] ;; [INFO] [stdout] gwt__help,init) [INFO] [stdout] cmd="gwt__help__init" [INFO] [stdout] ;; [INFO] [stdout] gwt__help,ls) [INFO] [stdout] cmd="gwt__help__ls" [INFO] [stdout] ;; [INFO] [stdout] gwt__help,rm) [INFO] [stdout] cmd="gwt__help__rm" [INFO] [stdout] ;; [INFO] [stdout] gwt__help,sw) [INFO] [stdout] cmd="gwt__help__sw" [INFO] [stdout] ;; [INFO] [stdout] gwt__help__config,setup) [INFO] [stdout] cmd="gwt__help__config__setup" [INFO] [stdout] ;; [INFO] [stdout] gwt__help__config,view) [INFO] [stdout] cmd="gwt__help__config__view" [INFO] [stdout] ;; [INFO] [stdout] *) [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] done [INFO] [stdout] [INFO] [stdout] case "${cmd}" in [INFO] [stdout] gwt) [INFO] [stdout] opts="-h --help config ls sw rm init current completion help" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__completion) [INFO] [stdout] opts="-h --help bash zsh fish" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__config) [INFO] [stdout] opts="-h --help view setup help" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__config__help) [INFO] [stdout] opts="view setup help" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__config__help__help) [INFO] [stdout] opts="" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__config__help__setup) [INFO] [stdout] opts="" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__config__help__view) [INFO] [stdout] opts="" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__config__setup) [INFO] [stdout] opts="-h --help" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__config__view) [INFO] [stdout] opts="-h --help" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__current) [INFO] [stdout] opts="-h --help" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__help) [INFO] [stdout] opts="config ls sw rm init current completion help" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__help__completion) [INFO] [stdout] opts="" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__help__config) [INFO] [stdout] opts="view setup" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__help__config__setup) [INFO] [stdout] opts="" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__help__config__view) [INFO] [stdout] opts="" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__help__current) [INFO] [stdout] opts="" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__help__help) [INFO] [stdout] opts="" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__help__init) [INFO] [stdout] opts="" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__help__ls) [INFO] [stdout] opts="" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__help__rm) [INFO] [stdout] opts="" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__help__sw) [INFO] [stdout] opts="" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__init) [INFO] [stdout] opts="-h --help " [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__ls) [INFO] [stdout] opts="-h --full --raw --help" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__rm) [INFO] [stdout] opts="-b -B -h --delete-branch --force-delete-branch --help " [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] gwt__sw) [INFO] [stdout] opts="-b -m -h --create-branch --main --remote --help [BRANCH]" [INFO] [stdout] if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] fi [INFO] [stdout] case "${prev}" in [INFO] [stdout] --remote) [INFO] [stdout] COMPREPLY=($(compgen -f "${cur}")) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] *) [INFO] [stdout] COMPREPLY=() [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) [INFO] [stdout] return 0 [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] } [INFO] [stdout] [INFO] [stdout] if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then [INFO] [stdout] complete -F _gwt -o nosort -o bashdefault -o default gwt [INFO] [stdout] else [INFO] [stdout] complete -F _gwt -o bashdefault -o default gwt [INFO] [stdout] fi [INFO] [stdout] ok [INFO] [stdout] test command::config::tests::test_execute_config_view_success ... ok [INFO] [stdout] test command::config::tests::test_execute_config_command_view_with_real_config ... ok [INFO] [stdout] test command::config::tests::test_execute_config_view_with_invalid_toml ... ok [INFO] [stdout] test command::completion::tests::test_handle_fish ... ok [INFO] [stdout] test command::completion::tests::test_handle_bash ... ok [INFO] [stdout] #compdef gwt [INFO] [stdout] [INFO] [stdout] autoload -U is-at-least [INFO] [stdout] [INFO] [stdout] _gwt() { [INFO] [stdout] typeset -A opt_args [INFO] [stdout] typeset -a _arguments_options [INFO] [stdout] local ret=1 [INFO] [stdout] [INFO] [stdout] if is-at-least 5.2; then [INFO] [stdout] _arguments_options=(-s -S -C) [INFO] [stdout] else [INFO] [stdout] _arguments_options=(-s -C) [INFO] [stdout] fi [INFO] [stdout] [INFO] [stdout] local context curcontext="$curcontext" state line [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] '-h[Print help]' \ [INFO] [stdout] '--help[Print help]' \ [INFO] [stdout] ":: :_gwt_commands" \ [INFO] [stdout] "*::: :->gwt" \ [INFO] [stdout] && ret=0 [INFO] [stdout] case $state in [INFO] [stdout] (gwt) [INFO] [stdout] words=($line[1] "${words[@]}") [INFO] [stdout] (( CURRENT += 1 )) [INFO] [stdout] curcontext="${curcontext%:*:*}:gwt-command-$line[1]:" [INFO] [stdout] case $line[1] in [INFO] [stdout] (config) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] '-h[Print help]' \ [INFO] [stdout] '--help[Print help]' \ [INFO] [stdout] ":: :_gwt__config_commands" \ [INFO] [stdout] "*::: :->config" \ [INFO] [stdout] && ret=0 [INFO] [stdout] [INFO] [stdout] case $state in [INFO] [stdout] (config) [INFO] [stdout] words=($line[1] "${words[@]}") [INFO] [stdout] (( CURRENT += 1 )) [INFO] [stdout] curcontext="${curcontext%:*:*}:gwt-config-command-$line[1]:" [INFO] [stdout] case $line[1] in [INFO] [stdout] (view) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] '-h[Print help]' \ [INFO] [stdout] '--help[Print help]' \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] (setup) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] '-h[Print help]' \ [INFO] [stdout] '--help[Print help]' \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] (help) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] ":: :_gwt__config__help_commands" \ [INFO] [stdout] "*::: :->help" \ [INFO] [stdout] && ret=0 [INFO] [stdout] [INFO] [stdout] case $state in [INFO] [stdout] (help) [INFO] [stdout] words=($line[1] "${words[@]}") [INFO] [stdout] (( CURRENT += 1 )) [INFO] [stdout] curcontext="${curcontext%:*:*}:gwt-config-help-command-$line[1]:" [INFO] [stdout] case $line[1] in [INFO] [stdout] (view) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] (setup) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] (help) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] ;; [INFO] [stdout] (ls) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] '--full[Show full branch names without truncation]' \ [INFO] [stdout] '--raw[Output only branch names, one per line (for shell completion)]' \ [INFO] [stdout] '-h[Print help]' \ [INFO] [stdout] '--help[Print help]' \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] (sw) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] '--remote=[Specify the remote to resolve ambiguity when multiple remotes have the same branch name]:REMOTE:_default' \ [INFO] [stdout] '-b[Create a new branch]' \ [INFO] [stdout] '--create-branch[Create a new branch]' \ [INFO] [stdout] '-m[Switch to the main branch (main or master)]' \ [INFO] [stdout] '--main[Switch to the main branch (main or master)]' \ [INFO] [stdout] '-h[Print help]' \ [INFO] [stdout] '--help[Print help]' \ [INFO] [stdout] '::branch -- Branch name to switch to:_default' \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] (rm) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] '-b[Delete the branch after removing the worktree]' \ [INFO] [stdout] '--delete-branch[Delete the branch after removing the worktree]' \ [INFO] [stdout] '-B[Force delete the branch (use -D instead of -d)]' \ [INFO] [stdout] '--force-delete-branch[Force delete the branch (use -D instead of -d)]' \ [INFO] [stdout] '-h[Print help]' \ [INFO] [stdout] '--help[Print help]' \ [INFO] [stdout] ':branch -- Branch name of the worktree to remove:_default' \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] (init) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] '-h[Print help]' \ [INFO] [stdout] '--help[Print help]' \ [INFO] [stdout] ':shell -- Shell name:_default' \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] (current) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] '-h[Print help]' \ [INFO] [stdout] '--help[Print help]' \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] (completion) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] '-h[Print help]' \ [INFO] [stdout] '--help[Print help]' \ [INFO] [stdout] ':shell -- Shell to generate completions for:(bash zsh fish)' \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] (help) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] ":: :_gwt__help_commands" \ [INFO] [stdout] "*::: :->help" \ [INFO] [stdout] && ret=0 [INFO] [stdout] [INFO] [stdout] case $state in [INFO] [stdout] (help) [INFO] [stdout] words=($line[1] "${words[@]}") [INFO] [stdout] (( CURRENT += 1 )) [INFO] [stdout] curcontext="${curcontext%:*:*}:gwt-help-command-$line[1]:" [INFO] [stdout] case $line[1] in [INFO] [stdout] (config) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] ":: :_gwt__help__config_commands" \ [INFO] [stdout] "*::: :->config" \ [INFO] [stdout] && ret=0 [INFO] [stdout] [INFO] [stdout] case $state in [INFO] [stdout] (config) [INFO] [stdout] words=($line[1] "${words[@]}") [INFO] [stdout] (( CURRENT += 1 )) [INFO] [stdout] curcontext="${curcontext%:*:*}:gwt-help-config-command-$line[1]:" [INFO] [stdout] case $line[1] in [INFO] [stdout] (view) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] (setup) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] ;; [INFO] [stdout] (ls) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] (sw) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] (rm) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] (init) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] (current) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] (completion) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] (help) [INFO] [stdout] _arguments "${_arguments_options[@]}" : \ [INFO] [stdout] && ret=0 [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] ;; [INFO] [stdout] esac [INFO] [stdout] } [INFO] [stdout] [INFO] [stdout] (( $+functions[_gwt_commands] )) || [INFO] [stdout] _gwt_commands() { [INFO] [stdout] local commands; commands=( [INFO] [stdout] 'config:Configure gwt' \ [INFO] [stdout] 'ls:List all worktrees' \ [INFO] [stdout] 'sw:Switch to an existing worktree for a branch (prints path on success)' \ [INFO] [stdout] 'rm:Remove a worktree by branch name' \ [INFO] [stdout] 'init:Output shell integration code for a given shell (bash, zsh, fish)' \ [INFO] [stdout] 'current:Print current worktree and branch information' \ [INFO] [stdout] 'completion:Generate shell completion scripts' \ [INFO] [stdout] 'help:Print this message or the help of the given subcommand(s)' \ [INFO] [stdout] ) [INFO] [stdout] _describe -t commands 'gwt commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__completion_commands] )) || [INFO] [stdout] _gwt__completion_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt completion commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__config_commands] )) || [INFO] [stdout] _gwt__config_commands() { [INFO] [stdout] local commands; commands=( [INFO] [stdout] 'view:View the current configuration file path and contents' \ [INFO] [stdout] 'setup:Reset the configuration' \ [INFO] [stdout] 'help:Print this message or the help of the given subcommand(s)' \ [INFO] [stdout] ) [INFO] [stdout] _describe -t commands 'gwt config commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__config__help_commands] )) || [INFO] [stdout] _gwt__config__help_commands() { [INFO] [stdout] local commands; commands=( [INFO] [stdout] 'view:View the current configuration file path and contents' \ [INFO] [stdout] 'setup:Reset the configuration' \ [INFO] [stdout] 'help:Print this message or the help of the given subcommand(s)' \ [INFO] [stdout] ) [INFO] [stdout] _describe -t commands 'gwt config help commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__config__help__help_commands] )) || [INFO] [stdout] _gwt__config__help__help_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt config help help commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__config__help__setup_commands] )) || [INFO] [stdout] _gwt__config__help__setup_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt config help setup commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__config__help__view_commands] )) || [INFO] [stdout] _gwt__config__help__view_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt config help view commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__config__setup_commands] )) || [INFO] [stdout] _gwt__config__setup_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt config setup commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__config__view_commands] )) || [INFO] [stdout] _gwt__config__view_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt config view commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__current_commands] )) || [INFO] [stdout] _gwt__current_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt current commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__help_commands] )) || [INFO] [stdout] _gwt__help_commands() { [INFO] [stdout] local commands; commands=( [INFO] [stdout] 'config:Configure gwt' \ [INFO] [stdout] 'ls:List all worktrees' \ [INFO] [stdout] 'sw:Switch to an existing worktree for a branch (prints path on success)' \ [INFO] [stdout] 'rm:Remove a worktree by branch name' \ [INFO] [stdout] 'init:Output shell integration code for a given shell (bash, zsh, fish)' \ [INFO] [stdout] 'current:Print current worktree and branch information' \ [INFO] [stdout] 'completion:Generate shell completion scripts' \ [INFO] [stdout] 'help:Print this message or the help of the given subcommand(s)' \ [INFO] [stdout] ) [INFO] [stdout] _describe -t commands 'gwt help commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__help__completion_commands] )) || [INFO] [stdout] _gwt__help__completion_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt help completion commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__help__config_commands] )) || [INFO] [stdout] _gwt__help__config_commands() { [INFO] [stdout] local commands; commands=( [INFO] [stdout] 'view:View the current configuration file path and contents' \ [INFO] [stdout] 'setup:Reset the configuration' \ [INFO] [stdout] ) [INFO] [stdout] _describe -t commands 'gwt help config commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__help__config__setup_commands] )) || [INFO] [stdout] _gwt__help__config__setup_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt help config setup commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__help__config__view_commands] )) || [INFO] [stdout] _gwt__help__config__view_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt help config view commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__help__current_commands] )) || [INFO] [stdout] _gwt__help__current_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt help current commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__help__help_commands] )) || [INFO] [stdout] _gwt__help__help_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt help help commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__help__init_commands] )) || [INFO] [stdout] _gwt__help__init_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt help init commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__help__ls_commands] )) || [INFO] [stdout] _gwt__help__ls_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt help ls commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__help__rm_commands] )) || [INFO] [stdout] _gwt__help__rm_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt help rm commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__help__sw_commands] )) || [INFO] [stdout] _gwt__help__sw_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt help sw commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__init_commands] )) || [INFO] [stdout] _gwt__init_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt init commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__ls_commands] )) || [INFO] [stdout] _gwt__ls_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt ls commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__rm_commands] )) || [INFO] [stdout] _gwt__rm_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt rm commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] (( $+functions[_gwt__sw_commands] )) || [INFO] [stdout] _gwt__sw_commands() { [INFO] [stdout] local commands; commands=() [INFO] [stdout] _describe -t commands 'gwt sw commands' commands "$@" [INFO] [stdout] } [INFO] [stdout] [INFO] [stdout] if [ "$funcstack[1]" = "_gwt" ]; then [INFO] [stdout] _gwt "$@" [INFO] [stdout] else [INFO] [stdout] compdef _gwt gwt [INFO] [stdout] fi [INFO] [stdout] test command::shell::tests::generate_bash_init_contains_completion ... ok [INFO] [stdout] test command::shell::tests::generate_bash_init_contains_function ... ok [INFO] [stdout] test command::shell::tests::generate_fish_init_contains_completion ... ok [INFO] [stdout] test command::completion::tests::test_handle_zsh ... ok [INFO] [stdout] test command::config::tests::test_config_commands_view_variant ... ok [INFO] [stdout] test command::shell::tests::generate_fish_init_contains_function ... ok [INFO] [stdout] test command::current::tests::test_handle_with_detached_head ... ok [INFO] [stdout] test command::shell::tests::generate_init_unsupported_shell ... ok [INFO] [stdout] test command::current::tests::test_handle_with_feature_branch ... ok [INFO] [stdout] test command::shell::tests::generate_zsh_init_contains_completion ... ok [INFO] [stdout] test command::shell::tests::generate_zsh_init_contains_function ... ok [INFO] [stdout] test command::worktree::list::tests::test_list_worktrees ... ok [INFO] [stdout] test command::current::tests::test_handle_with_regular_branch ... ok [INFO] [stdout] test command::worktree::list::tests::test_list_worktrees_dangling_vs_valid_path_matching ... ok [INFO] [stdout] test command::worktree::list::tests::test_list_worktrees_detached_sorted_last ... ok [INFO] [stdout] test command::worktree::list::tests::test_list_worktrees_full_flag_shows_complete_branch_names ... ok [INFO] [stdout] test command::worktree::tests::test_compute_worktree_hash ... ok [INFO] [stdout] test command::worktree::list::tests::test_list_worktrees_in_dangling_worktree_directory ... ok [INFO] [stdout] test command::worktree::list::tests::test_list_worktrees_sorted_alphabetically ... ok [INFO] [stdout] test command::worktree::list::tests::test_list_worktrees_sorted_alphabetically_by_branch ... ok [INFO] [stdout] test command::worktree::list::tests::test_list_worktrees_no_current_worktree ... ok [INFO] [stdout] test command::worktree::list::tests::test_list_worktrees_truncate_long_branch_names ... ok [INFO] [stdout] test command::worktree::list::tests::test_list_worktrees_with_detached ... ok [INFO] [stdout] test command::worktree::tests::test_compute_target_path ... ok [INFO] [stdout] test command::worktree::tests::test_create_worktree_and_print_path_with_create ... ok [INFO] [stdout] test command::worktree::tests::test_handle_remote_branch ... ok [INFO] [stdout] test command::worktree::tests::test_handle_remote_branch_not_found ... ok [INFO] [stdout] test config::tests::test_config_data_save_and_load ... ok [INFO] [stdout] test command::worktree::tests::test_handle_remote_branch_ambiguous ... ok [INFO] [stdout] test config::tests::test_config_omit_for_init ... ok [INFO] [stdout] test utility::tests::parse_branch_with_slash ... ok [INFO] [stdout] test utility::tests::parse_multiple_blocks_last_block_without_trailing_blank_correct ... ok [INFO] [stdout] test utility::tests::parse_porcelain_detached_worktree ... ok [INFO] [stdout] test utility::tests::parse_porcelain_two_worktrees ... ok [INFO] [stdout] test utility::tests::test_branch_exists_false ... ok [INFO] [stdout] test utility::tests::test_branch_exists_true ... ok [INFO] [stdout] test command::worktree::tests::test_handle_remote_branch_with_override ... ok [INFO] [stdout] test utility::tests::test_create_branch ... ok [INFO] [stdout] test command::worktree::tests::test_resolve_main_branch_when_only_main_exists ... ok [INFO] [stdout] test utility::tests::test_create_branch_from_remote ... ok [INFO] [stdout] test utility::tests::test_delete_branch ... ok [INFO] [stdout] test command::worktree::tests::test_resolve_main_branch_when_only_master_exists ... ok [INFO] [stdout] test utility::tests::test_delete_branch_force ... ok [INFO] [stdout] test config::tests::test_ensure_worktree_root_exists ... ok [INFO] [stdout] test utility::tests::test_find_remote_branches_by_name ... ok [INFO] [stdout] test utility::tests::test_find_worktree_by_branch ... ok [INFO] [stdout] test command::worktree::tests::test_switch_prefers_local ... ok [INFO] [stdout] test utility::tests::test_list_worktrees_with_mock_git ... ok [INFO] [stdout] test utility::worktree::tests::test_worktrees_branches ... ok [INFO] [stdout] test utility::worktree::tests::test_worktrees_into_iterator ... ok [INFO] [stdout] test utility::worktree::tests::test_worktree_render ... ok [INFO] [stdout] test command::worktree::tests::test_resolve_main_branch_when_neither_exists ... ok [INFO] [stdout] test utility::tests::test_get_main_worktree ... ok [INFO] [stdout] test utility::worktree::tests::test_worktrees_sorting_and_deref ... ok [INFO] [stdout] test command::worktree::tests::test_resolve_main_branch_when_both_exist_prefer_main ... ok [INFO] [stdout] test utility::tests::test_remote_branch_exists_true ... ok [INFO] [stdout] test utility::tests::test_remove_worktree ... ok [INFO] [stdout] test utility::tests::test_remote_branch_exists_false ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 65 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.27s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "80893a998fdaad71711f68474e98105096da989e058fbd197d3f2114c3aa52b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "80893a998fdaad71711f68474e98105096da989e058fbd197d3f2114c3aa52b0", kill_on_drop: false }` [INFO] [stdout] 80893a998fdaad71711f68474e98105096da989e058fbd197d3f2114c3aa52b0