mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 02:29:00 +08:00
Fix fish completions (#30050)
This commit is contained in:
parent
8ead9c2674
commit
02ad673d3b
@ -19,9 +19,7 @@ complete -c vcpkg -f --arguments '(_vcpkg_completions)'
|
|||||||
set vcpkg_commands ($vcpkg_executable autocomplete)
|
set vcpkg_commands ($vcpkg_executable autocomplete)
|
||||||
|
|
||||||
function _set_triplet_arguments
|
function _set_triplet_arguments
|
||||||
set triplets ($vcpkg_executable help triplet)
|
set triplets ($vcpkg_executable help triplet | grep "^\s" | cut -d' ' -f3)
|
||||||
set -e triplets[(contains -i -- "Available architecture triplets" $triplets)]
|
|
||||||
set -e triplets[(contains -i -- "" $triplets)]
|
|
||||||
set triplet_from ""
|
set triplet_from ""
|
||||||
for triplet in $triplets
|
for triplet in $triplets
|
||||||
echo (test -n "$triplet") >> temp.txt
|
echo (test -n "$triplet") >> temp.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user