From b42138bfb682a9579305f3ab2919ec24e2aa4dbc Mon Sep 17 00:00:00 2001 From: Joshua Henderson Date: Tue, 16 Jan 2024 01:12:10 -0500 Subject: [PATCH] Tools : completion add submoduleclean & submodule_force_clean --- Tools/completion/bash/_waf | 2 ++ Tools/completion/zsh/_waf | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Tools/completion/bash/_waf b/Tools/completion/bash/_waf index 5eb71bd2e7..a62a4a1251 100755 --- a/Tools/completion/bash/_waf +++ b/Tools/completion/bash/_waf @@ -31,6 +31,8 @@ _waf() opts+=" configure" opts+=" clean" opts+=" distclean" + opts+=" submodule_force_clean" + opts+=" submodulesync" # Prevent word reuse TODO: add -vvv case lim=$((COMP_CWORD - 1)) diff --git a/Tools/completion/zsh/_waf b/Tools/completion/zsh/_waf index e2d0ce6d63..4b70537d00 100644 --- a/Tools/completion/zsh/_waf +++ b/Tools/completion/zsh/_waf @@ -89,7 +89,9 @@ _waf_cmds() { 'build:executes the build' \ 'configure:configures 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 }