From 5ada4c19add11e5cdb9a53c9b892c8cc7de5184b Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 7 Mar 2026 20:51:16 +0800 Subject: Add new subcommands to butck help and completion --- resources/helps/butck.txt | 4 +++- 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 Write a file and output the index file write -R Then, register the index build 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 -- cgit