Add completion for azure cli (az) (#8141)

* add completion for azure cli (az)

* alter az.fish to match faho's requests

Co-authored-by: Kevin Konrad <kevin.konrad@unicepta.com>
This commit is contained in:
Kevin F. Konrad 2021-07-21 17:57:59 +02:00 committed by GitHub
parent 58997cae2f
commit 869c42d72a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -33,6 +33,7 @@ Completions
- Angular's ``ng`` (:issue:`8111`)
- ``zef`` (:issue:`8114`)
- ``rakudo`` (:issue:`8113`)
- ``az`` (:issue:`8141`)
- Improvements to many completions.

12
share/completions/az.fish Normal file
View File

@ -0,0 +1,12 @@
function __fish_az_complete
set -lx _ARGCOMPLETE 1
set -lx _ARGCOMPLETE_IFS \n
set -lx _ARGCOMPLETE_SUPPRESS_SPACE 1
set -lx _ARGCOMPLETE_SHELL fish
set -lx COMP_LINE (commandline -pc)
set -lx COMP_POINT (string length (commandline -cp))
set -lx COMP_TYPE
az 8>&1 9>&2 2>/dev/null
end
complete -c az -f -a '(__fish_az_complete)'