Tools : completion add submoduleclean & submodule_force_clean

This commit is contained in:
Joshua Henderson 2024-01-16 01:12:10 -05:00 committed by Andrew Tridgell
parent 5b5ee4e95d
commit b42138bfb6
2 changed files with 5 additions and 1 deletions

View File

@ -31,6 +31,8 @@ _waf()
opts+=" configure" opts+=" configure"
opts+=" clean" opts+=" clean"
opts+=" distclean" opts+=" distclean"
opts+=" submodule_force_clean"
opts+=" submodulesync"
# Prevent word reuse TODO: add -vvv case # Prevent word reuse TODO: add -vvv case
lim=$((COMP_CWORD - 1)) lim=$((COMP_CWORD - 1))

View File

@ -89,7 +89,9 @@ _waf_cmds() {
'build:executes the build' \ 'build:executes the build' \
'configure:configures the project' \ 'configure:configures the project' \
'clean:cleans the project' \ 'clean:cleans the project' \
'distclean:removes build folders and data' 'distclean:removes build folders and data' \
'submodule_force_clean:removes all submodules, then checkouts all current submodules and synchronizes them' \
'submodulesync:checkouts all current submodules and synchronizes them'
) )
_describe -t commands 'command' commands "$@" && ret=0 _describe -t commands 'command' commands "$@" && ret=0
} }