diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-07 20:51:16 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-07 20:51:16 +0800 |
| commit | 5ada4c19add11e5cdb9a53c9b892c8cc7de5184b (patch) | |
| tree | 39b5f6bab849e248f37b23586d5419ed7d4b2a1f | |
| parent | 9e7c0fd45e169929156bdb317b10d7bb3db65f8b (diff) | |
Add new subcommands to butck help and completion
| -rw-r--r-- | resources/helps/butck.txt | 4 | ||||
| -rw-r--r-- | scripts/sh/comp_butck.sh | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/resources/helps/butck.txt b/resources/helps/butck.txt index 3ee666c..0886b39 100644 --- a/resources/helps/butck.txt +++ b/resources/helps/butck.txt @@ -14,7 +14,9 @@ Subcommands: write <file> Write a file and output the index file write <file> -R <name> Then, register the index build <index/name> Input an index file and build the file from the storage - policies Output the available policies + policies Output all available policies (including stream policies) + simple_policies Output only simple policies + stream_policies Output only stream policies Butchunker 0.1.0 Copyright (c) 2026 Weicao-CatilGrass diff --git a/scripts/sh/comp_butck.sh b/scripts/sh/comp_butck.sh index 8cb31f0..b59dc62 100644 --- a/scripts/sh/comp_butck.sh +++ b/scripts/sh/comp_butck.sh @@ -40,7 +40,7 @@ _butck_completion() { esac if [[ $cword -eq 1 ]]; then - COMPREPLY=($(compgen -W "write build state policies" -- "$cur")) + COMPREPLY=($(compgen -W "write build state policies stream_policies simple_policies" -- "$cur")) fi if [[ $cword -ge 2 ]]; then |
