mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Reformat fish files
This commit is contained in:
parent
57e96e791e
commit
3842d03473
9 changed files with 30 additions and 31 deletions
|
@ -112,7 +112,7 @@ complete -c blender -l verbose -d 'specify logging verbosity level' -x
|
|||
complete -c blender -l gpu-backend -a 'vulkan metal opengl' -d 'specify GPI backend' -x
|
||||
|
||||
complete -c blender -l open-last -d 'open the most recent .blend file'
|
||||
complete -c blender -l open-last -a 'default' -d 'specify app template' -r
|
||||
complete -c blender -l open-last -a default -d 'specify app template' -r
|
||||
complete -c blender -l factory-startup -d 'do not read startup.blend'
|
||||
complete -c blender -l enable-event-simulate -d 'enable event simulation'
|
||||
complete -c blender -l env-system-datafiles -d 'set BLENDER_SYSTEM_DATAFILES variable'
|
||||
|
@ -122,4 +122,3 @@ complete -c blender -o noaudio -d 'disable sound'
|
|||
complete -c blender -o setaudio -a 'None SDL OpenAL CoreAudio JACK PulseAudio WASAPI' -d 'specify sound device' -x
|
||||
complete -c blender -s R -d 'register .blend extension'
|
||||
complete -c blender -s r -d 'silently register .blend extension'
|
||||
|
||||
|
|
|
@ -263,8 +263,8 @@ complete -c gcc -o dumpmachine -d 'Print the compiler’s target machine (for ex
|
|||
complete -c gcc -o dumpversion -d 'Print the compiler version (for example, 3.0,6.3 or 7)---and don’t do anything else'
|
||||
complete -c gcc -o dumpspecs -d 'Print the compiler’s built-in specs---and don’t do anything else'
|
||||
complete -c gcc -o feliminate-unused-debug-types -d 'Normally, when producing DWARF2 output, GCC will emit debugging information for all types declared in a compilation unit, regardless of whether or not they are actually used in that compilation unit'
|
||||
complete -c gcc -o O -d 'Optimize'
|
||||
complete -c gcc -o O1 -d 'Optimize'
|
||||
complete -c gcc -o O -d Optimize
|
||||
complete -c gcc -o O1 -d Optimize
|
||||
complete -c gcc -o O2 -d 'Optimize even more'
|
||||
complete -c gcc -o O3 -d 'Optimize yet more'
|
||||
complete -c gcc -o O0 -d 'Do not optimize'
|
||||
|
|
|
@ -26,4 +26,4 @@ complete -c gimp -l debug-handlers -d 'enable debug handlers'
|
|||
complete -c gimp -l stack-trace-mode -d 'whether generate stack-trace in case of fatal signals' -a 'never query always' -x
|
||||
complete -c gimp -l pdb-compat-mode -d 'whether PDB provides aliases for deprecated functions' -a 'off on warn' -x
|
||||
complete -c gimp -l batch-interpreter -d 'run procedure to use to process batch events' -r
|
||||
complete -c gimp -s b -l batch -d 'run command non-interactively' -a '-' -r
|
||||
complete -c gimp -s b -l batch -d 'run command non-interactively' -a - -r
|
||||
|
|
|
@ -39,7 +39,7 @@ function __iwctl_match_subcoms
|
|||
|
||||
set argv (commandline -poc)
|
||||
# iwctl allows to specify arguments for username, password, passphrase and dont-ask regardless of any following commands
|
||||
argparse -i 'u/username=' 'p/password=' 'P/passphrase=' 'v/dont-ask' -- $argv
|
||||
argparse -i 'u/username=' 'p/password=' 'P/passphrase=' v/dont-ask -- $argv
|
||||
set argv $argv[2..]
|
||||
|
||||
if test (count $argv) != (count $match)
|
||||
|
@ -56,7 +56,7 @@ end
|
|||
function __iwctl_connect
|
||||
set argv (commandline -poc)
|
||||
# remove all options
|
||||
argparse -i 'u/username=' 'p/password=' 'P/passphrase=' 'v/dont-ask' -- $argv
|
||||
argparse -i 'u/username=' 'p/password=' 'P/passphrase=' v/dont-ask -- $argv
|
||||
# station name should now be the third argument (`iwctl station <wlan>`)
|
||||
for network in (__iwctl_filter station $argv[3] get-networks rssi-dbms --all-columns)
|
||||
set network (string split \t -- $network)
|
||||
|
@ -97,7 +97,7 @@ complete -c iwctl -s P -l passphrase -rf
|
|||
complete -c iwctl -s v -l dont-ask -d "Don't ask for missing credentials"
|
||||
|
||||
# Subcommand
|
||||
complete -c iwctl -n '__iwctl_match_subcoms' \
|
||||
complete -c iwctl -n __iwctl_match_subcoms \
|
||||
-a "ad-hoc adapter ap debug device dpp exit help known-networks quit station version wsc"
|
||||
|
||||
# ad-hoc
|
||||
|
@ -108,14 +108,14 @@ complete -c iwctl -n '__iwctl_match_subcoms "ad-hoc *"' -n 'not __iwctl_match_su
|
|||
complete -c iwctl -n '__iwctl_match_subcoms "ad-hoc *"' -n 'not __iwctl_match_subcoms ad-hoc list' -a stop -d "Leave an Ad-Hoc network"
|
||||
|
||||
# adapter
|
||||
complete -c iwctl -n '__iwctl_match_subcoms adapter' -a "list" -d "List adapters"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms adapter' -a list -d "List adapters"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms adapter' -a "(__iwctl_filter adapter list)"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "adapter *"' -n 'not __iwctl_match_subcoms adapter list' -a "show" -d "Show adapter info"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "adapter *"' -n 'not __iwctl_match_subcoms adapter list' -a "set-property" -d "Set property"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "adapter *"' -n 'not __iwctl_match_subcoms adapter list' -a show -d "Show adapter info"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "adapter *"' -n 'not __iwctl_match_subcoms adapter list' -a set-property -d "Set property"
|
||||
# TODO implement completions for `properties`, i.e. all rows with `*` in first column
|
||||
|
||||
# ap
|
||||
complete -c iwctl -n '__iwctl_match_subcoms ap' -a "list" -d "List devices in AP mode"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms ap' -a list -d "List devices in AP mode"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms ap' -a "(__iwctl_filter ap list)"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "ap *"' -n 'not __iwctl_match_subcoms ap list' -a start -d "Start an access point"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "ap *"' -n 'not __iwctl_match_subcoms ap list' -a start-profile -d "Start an access point based on a disk profile"
|
||||
|
@ -131,14 +131,14 @@ complete -c iwctl -n '__iwctl_match_subcoms "debug *"' -a autoconnect -d "Set au
|
|||
complete -c iwctl -n '__iwctl_match_subcoms "debug * autoconnect"' -a "on off" -d "Set autoconnect property"
|
||||
|
||||
# device
|
||||
complete -c iwctl -n '__iwctl_match_subcoms device' -a "list" -d "List devices"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms device' -a list -d "List devices"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms device' -a "(__iwctl_filter device list)"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "device *"' -n 'not __iwctl_match_subcoms device list' -a "show" -d "Show device info"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "device *"' -n 'not __iwctl_match_subcoms device list' -a "set-property" -d "Set property"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "device *"' -n 'not __iwctl_match_subcoms device list' -a show -d "Show device info"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "device *"' -n 'not __iwctl_match_subcoms device list' -a set-property -d "Set property"
|
||||
# TODO implement completions for `properties`, i.e. all rows with `*` in first column
|
||||
|
||||
# dpp
|
||||
complete -c iwctl -n '__iwctl_match_subcoms dpp' -a "list" -d "List DPP-capable devices"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms dpp' -a list -d "List DPP-capable devices"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms dpp' -a "(__iwctl_filter dpp list)"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "dpp *"' -n 'not __iwctl_match_subcoms dpp list' -a start-enrollee -d "Starts a DPP Enrollee"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "dpp *"' -n 'not __iwctl_match_subcoms dpp list' -a start-configurator -d "Starts a DPP Configurator"
|
||||
|
@ -147,28 +147,28 @@ complete -c iwctl -n '__iwctl_match_subcoms "dpp *"' -n 'not __iwctl_match_subco
|
|||
|
||||
# known-networks
|
||||
# TODO Does not support SSIDs ending/starting on whitespace. Not sure how to fix.
|
||||
complete -c iwctl -n '__iwctl_match_subcoms known-networks' -a "list" -d "List known networks"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms known-networks' -a list -d "List known networks"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms known-networks' -a "(__iwctl_filter known-networks list)"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "known-networks *"' -n 'not __iwctl_match_subcoms known-networks list' -a forget -d "Forget a known network"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "known-networks *"' -n 'not __iwctl_match_subcoms known-networks list' -a show -d "Show nown network"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "known-networks *"' -n 'not __iwctl_match_subcoms known-networks list' -a set-property -d "Set property"
|
||||
|
||||
# station
|
||||
complete -c iwctl -n '__iwctl_match_subcoms station' -a "list" -d "List devices in Station mode"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms station' -a list -d "List devices in Station mode"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms station' -a "(__iwctl_filter station list)"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station *"' -n 'not __iwctl_match_subcoms station list' -a connect -d "Connect to network"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station * connect"' -a "(__iwctl_connect)" -d "Connect to network" --keep-order
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station *"' -n 'not __iwctl_match_subcoms station list' -a connect-hidden -d "Connect to hidden network"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station *"' -n 'not __iwctl_match_subcoms station list' -a disconnect -d "Disconnect"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station *"' -n 'not __iwctl_match_subcoms station list' -a disconnect -d Disconnect
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station *"' -n 'not __iwctl_match_subcoms station list' -a get-networks -d "Get networks"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station * get-networks"' -a "rssi-dbms rssi-bars"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station *"' -n 'not __iwctl_match_subcoms station list' -a get-hidden-access-points -d "Get hidden APs"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station * get-hidden-access-points"' -a "rssi-dbms"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station * get-hidden-access-points"' -a rssi-dbms
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station *"' -n 'not __iwctl_match_subcoms station list' -a scan -d "Scan for networks"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station *"' -n 'not __iwctl_match_subcoms station list' -a show -d "Show station info"
|
||||
|
||||
# wsc
|
||||
complete -c iwctl -n '__iwctl_match_subcoms wsc' -a "list" -d "List WSC-capable devices"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms wsc' -a list -d "List WSC-capable devices"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms wsc' -a "(__iwctl_filter wsc list)"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "wsc *"' -n 'not __iwctl_match_subcoms wsc list' -a push-button -d "PushButton Mode"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "wsc *"' -n 'not __iwctl_match_subcoms wsc list' -a start-user-pin -d "PIN mode"
|
||||
|
|
|
@ -161,10 +161,10 @@ complete -c node -l randomize_hashes -d 'randomize hashes(w/ snapshots cannot ov
|
|||
complete -c node -l hash_seed -d 'Fix seed to hash prop. key(w/ snapshots no BI seed overr.)'
|
||||
complete -c node -l preemption -d 'activate a 100ms timer that switches between V8 threads'
|
||||
complete -c node -l regexp_optimization -d 'generate optimized regexp code'
|
||||
complete -c node -l testing_bool_flag -d 'testing_bool_flag'
|
||||
complete -c node -l testing_int_flag -d 'testing_int_flag'
|
||||
complete -c node -l testing_float_flag -d 'float-flag'
|
||||
complete -c node -l testing_string_flag -d 'string-flag'
|
||||
complete -c node -l testing_bool_flag -d testing_bool_flag
|
||||
complete -c node -l testing_int_flag -d testing_int_flag
|
||||
complete -c node -l testing_float_flag -d float-flag
|
||||
complete -c node -l testing_string_flag -d string-flag
|
||||
complete -c node -l testing_prng_seed -d 'Seed used for threading test randomness'
|
||||
complete -c node -l testing_serialization_file -d 'file in which to serialize heap'
|
||||
complete -c node -l help -d 'Print usage message, including flags, on console'
|
||||
|
|
|
@ -34,7 +34,7 @@ function __fish_watchexec_at_argfile
|
|||
return 1
|
||||
end
|
||||
|
||||
complete -c watchexec -n "__fish_watchexec_at_argfile" -x -a "(__fish_watchexec_at_argfile)"
|
||||
complete -c watchexec -n __fish_watchexec_at_argfile -x -a "(__fish_watchexec_at_argfile)"
|
||||
|
||||
complete -c watchexec -x -a "(__fish_watchexec_complete_subcommand)"
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ function __fish_anypager --description "Print a pager to use"
|
|||
and echo $PAGER | read -at pager
|
||||
|
||||
# or even $MANPAGER if we're allowed to
|
||||
if test "$argv[1]" = "--with-manpager"
|
||||
if test "$argv[1]" = --with-manpager
|
||||
set -q MANPAGER
|
||||
and echo $MANPAGER | read -at pager
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue