fix(completions): simplify code for date

This commit is contained in:
EmilyGraceSeville7cf 2024-09-15 09:24:51 +10:00
parent 47dcc16e35
commit 673fe671d3

View file

@ -1,7 +1,3 @@
function __fish_termux_api__complete_date_formats
printf 'dd-MM-yyyy k:m:s\tdefault'
end
set command termux-dialog
complete -c $command -f
@ -56,7 +52,7 @@ complete -c $command \
-x
complete -c $command \
-a '(__fish_termux_api__complete_date_formats)' \
-a '"dd-MM-yyyy k:m:s"\tdefault' \
-s d \
-d "Specify a [d]ate format" \
-n "__fish_seen_subcommand_from date" \