@solaqua/gji 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/commands/clean.d.ts +1 -0
- package/dist/cli/commands/clean.js +55 -16
- package/dist/cli/program.js +5 -0
- package/dist/domain/worktree/path-filter.d.ts +13 -0
- package/dist/domain/worktree/path-filter.js +72 -0
- package/dist/domain/worktree/policy.d.ts +1 -0
- package/dist/domain/worktree/policy.js +1 -1
- package/dist/gji-bundle.mjs +272 -161
- package/dist/presentation/shell/completion.js +7 -2
- package/man/man1/gji-back.1 +1 -1
- package/man/man1/gji-clean.1 +4 -1
- package/man/man1/gji-completion.1 +1 -1
- package/man/man1/gji-config.1 +1 -1
- package/man/man1/gji-doctor.1 +1 -1
- package/man/man1/gji-done.1 +1 -1
- package/man/man1/gji-go.1 +1 -1
- package/man/man1/gji-history.1 +1 -1
- package/man/man1/gji-init.1 +1 -1
- package/man/man1/gji-ls.1 +1 -1
- package/man/man1/gji-new.1 +1 -1
- package/man/man1/gji-open.1 +1 -1
- package/man/man1/gji-pr.1 +1 -1
- package/man/man1/gji-remove.1 +1 -1
- package/man/man1/gji-root.1 +1 -1
- package/man/man1/gji-run-hook.1 +1 -1
- package/man/man1/gji-status.1 +1 -1
- package/man/man1/gji-sync-files.1 +1 -1
- package/man/man1/gji-sync.1 +1 -1
- package/man/man1/gji-task.1 +1 -1
- package/man/man1/gji-undo.1 +1 -1
- package/man/man1/gji-warp.1 +1 -1
- package/man/man1/gji.1 +1 -1
- package/package.json +1 -1
|
@@ -221,7 +221,11 @@ _gji_completion() {
|
|
|
221
221
|
COMPREPLY=( $(compgen -W "--compact --json --help" -- "$cur") )
|
|
222
222
|
;;
|
|
223
223
|
clean)
|
|
224
|
-
|
|
224
|
+
if [ "\${COMP_WORDS[COMP_CWORD-1]}" = "--path" ]; then
|
|
225
|
+
COMPREPLY=( $(compgen -d -- "$cur") )
|
|
226
|
+
else
|
|
227
|
+
COMPREPLY=( $(compgen -W "-f --force --stale --path --dry-run --json --help" -- "$cur") )
|
|
228
|
+
fi
|
|
225
229
|
;;
|
|
226
230
|
remove|rm)
|
|
227
231
|
COMPREPLY=( $(compgen -W "$(__gji_worktree_branches) -f --force --dry-run --json --help" -- "$cur") )
|
|
@@ -454,6 +458,7 @@ complete -c gji -n '__fish_seen_subcommand_from ls' -l json -d 'print active wor
|
|
|
454
458
|
|
|
455
459
|
complete -c gji -n '__fish_seen_subcommand_from clean' -s f -l force -d 'bypass prompts, force-remove dirty worktrees, and force-delete unmerged branches'
|
|
456
460
|
complete -c gji -n '__fish_seen_subcommand_from clean' -l stale -d 'only target clean worktrees whose upstream is gone and branch is merged into the default branch'
|
|
461
|
+
complete -c gji -n '__fish_seen_subcommand_from clean' -l path -r -F -d 'only target worktrees under a directory or matching a path glob (repeatable)'
|
|
457
462
|
complete -c gji -n '__fish_seen_subcommand_from clean' -l dry-run -d 'show what would be deleted without removing anything'
|
|
458
463
|
complete -c gji -n '__fish_seen_subcommand_from clean' -l json -d 'emit JSON on success or error instead of human-readable output'
|
|
459
464
|
|
|
@@ -612,7 +617,7 @@ case "\${words[2]}" in
|
|
|
612
617
|
_arguments '--compact[show only branch and path columns]' '--json[print active worktrees as JSON]'
|
|
613
618
|
;;
|
|
614
619
|
clean)
|
|
615
|
-
_arguments '(-f --force)'{-f,--force}'[bypass prompts, force-remove dirty worktrees, and force-delete unmerged branches]' '--stale[only target clean worktrees whose upstream is gone and branch is merged into the default branch]' '--dry-run[show what would be deleted without removing anything]' '--json[emit JSON on success or error instead of human-readable output]'
|
|
620
|
+
_arguments '(-f --force)'{-f,--force}'[bypass prompts, force-remove dirty worktrees, and force-delete unmerged branches]' '--stale[only target clean worktrees whose upstream is gone and branch is merged into the default branch]' '*--path[only target worktrees under a directory or matching a path glob]:pattern:_files' '--dry-run[show what would be deleted without removing anything]' '--json[emit JSON on success or error instead of human-readable output]'
|
|
616
621
|
;;
|
|
617
622
|
remove|rm)
|
|
618
623
|
_arguments '(-f --force)'{-f,--force}'[bypass prompts, force-remove a dirty worktree, and force-delete an unmerged branch]' '--dry-run[show what would be deleted without removing anything]' '--json[emit JSON on success or error instead of human-readable output]' '2:branch:->worktrees'
|
package/man/man1/gji-back.1
CHANGED
package/man/man1/gji-clean.1
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.TH GJI\-CLEAN 1 "
|
|
1
|
+
.TH GJI\-CLEAN 1 "October 2026" "gji 0.15.0" "User Commands"
|
|
2
2
|
.SH NAME
|
|
3
3
|
gji\-clean \- interactively prune linked worktrees
|
|
4
4
|
.SH SYNOPSIS
|
|
@@ -13,6 +13,9 @@ bypass prompts, force\-remove dirty worktrees, and force\-delete unmerged branch
|
|
|
13
13
|
.B \-\-stale
|
|
14
14
|
only target clean worktrees whose upstream is gone and branch is merged into the default branch
|
|
15
15
|
.TP
|
|
16
|
+
.B \-\-path <pattern>
|
|
17
|
+
only target worktrees under a directory or matching a path glob (repeatable)
|
|
18
|
+
.TP
|
|
16
19
|
.B \-\-dry\-run
|
|
17
20
|
show what would be deleted without removing anything
|
|
18
21
|
.TP
|
package/man/man1/gji-config.1
CHANGED
package/man/man1/gji-doctor.1
CHANGED
package/man/man1/gji-done.1
CHANGED
package/man/man1/gji-go.1
CHANGED
package/man/man1/gji-history.1
CHANGED
package/man/man1/gji-init.1
CHANGED
package/man/man1/gji-ls.1
CHANGED
package/man/man1/gji-new.1
CHANGED
package/man/man1/gji-open.1
CHANGED
package/man/man1/gji-pr.1
CHANGED
package/man/man1/gji-remove.1
CHANGED
package/man/man1/gji-root.1
CHANGED
package/man/man1/gji-run-hook.1
CHANGED
package/man/man1/gji-status.1
CHANGED
package/man/man1/gji-sync.1
CHANGED
package/man/man1/gji-task.1
CHANGED
package/man/man1/gji-undo.1
CHANGED
package/man/man1/gji-warp.1
CHANGED
package/man/man1/gji.1
CHANGED