bash_completion: Refactor and simplify
Change cros_portage_upgrade to an already defined completion.
Change the name of said completion to not be _board_sysroot,
since it also completes flags from help.
BUG=none
TEST=unset _comp_cache
declare -A _comp_cache
./build_package --<tab><tab>
TEST=unset _comp_cache
declare -A _comp_cache
cros_workon --<tab><tab>
Change-Id: I48d24a3bfb4d067f67011ffa8d86818be9ea119b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosutils/+/1913091
Tested-by: Craig Hesling <hesling@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
1 file changed