Run fish_indent over new Windows completions

This commit is contained in:
ridiculousfish 2022-01-26 22:02:23 -08:00
parent cdae6536fd
commit b8fd6b5f31
11 changed files with 233 additions and 233 deletions

View file

@ -1,7 +1,7 @@
function __cleanmgr_complete_args -d 'Function to generate args'
set -l previous_token (commandline -oc)[-1]
if test "$previous_token" = '/d'
if test "$previous_token" = /d
__fish_print_windows_drives
return
end

View file

@ -6,7 +6,7 @@ function __cmdkey_complete_args -d 'Function to generate args'
case '/user:*'
__fish_print_windows_users | awk "{ printf \"%s%s\n\", \"$current_token\", \$0 }"
case '*'
if test "$previous_token" = '/delete'
if test "$previous_token" = /delete
echo -e '/ras\tDelete remote access entry'
return
end

View file

@ -1,5 +1,5 @@
function __reg_add_complete_args -a previous_token
if test "$previous_token" = '/t'
if test "$previous_token" = /t
echo 'REG_SZ
REG_MULTI_SZ
REG_DWORD_BIG_ENDIAN
@ -12,7 +12,7 @@ REG_EXPAND_SZ'
return
end
if not __fish_seen_argument -w 'v' -w 've'
if not __fish_seen_argument -w v -w ve
echo -e '/v\tSpecify the name of the add registry entry
/ve\tSpecify that the added registry entry has a null value'
end
@ -25,12 +25,12 @@ REG_EXPAND_SZ'
end
function __reg_compare_complete_args
if not __fish_seen_argument -w 'v' -w 've'
if not __fish_seen_argument -w v -w ve
echo -e '/v\tSpecify the value name
/ve\tSpecify that only entries that have a value name of null should be compared'
end
if not __fish_seen_argument -w 'oa' -w 'od' -w 'os' -w 'on'
if not __fish_seen_argument -w oa -w od -w os -w on
echo -e '/oa\tSpecify that all differences and matches are displayed
/od\tSpecify that only differences are displayed
/os\tSpecify that only matches are displayed
@ -48,7 +48,7 @@ function __reg_copy_complete_args
end
function __reg_delete_complete_args
if not __fish_seen_argument -w 'v' -w 've' -w 'va'
if not __fish_seen_argument -w v -w ve -w va
echo -e '/v\tDelete a specific entry under the subkey
/ve\tSpecify that only entries that have no value will be deleted
/va\tDelete all entries under the specified subkey'
@ -64,7 +64,7 @@ function __reg_export_complete_args
end
function __reg_query_complete_args -a previous_token
if test "$previous_token" = '/t'
if test "$previous_token" = /t
echo 'REG_SZ
REG_MULTI_SZ
REG_EXPAND_SZ
@ -74,12 +74,12 @@ REG_NONE'
return
end
if not __fish_seen_argument -w 'v' -w 've'
if not __fish_seen_argument -w v -w ve
echo -e '/v\tSpecify the registry value name
/ve\tRun a query for value names that are empty'
end
if not __fish_seen_argument -w 'k' -w 'd'
if not __fish_seen_argument -w k -w d
echo -e '/k\tSpecify to search in key names only
/d\tSpecify to search in data only'
end

View file

@ -3,7 +3,7 @@ function __schtasks_print_tasks -d 'Helper function to print tasks'
end
function __schtasks_change_complete_args -a previous_token
if test "$previous_token" = '/tn'
if test "$previous_token" = /tn
__schtasks_print_tasks
return
end
@ -13,20 +13,20 @@ function __schtasks_change_complete_args -a previous_token
return
end
if __fish_seen_argument -w 's'
if __fish_seen_argument -w s
echo -e '/u\tRun this command with the permissions of the specified user account'
end
if __fish_seen_argument -w 'u'
if __fish_seen_argument -w u
echo -e '/p\tSpecify the password of the user account specified in the /u parameter'
end
if not __fish_seen_argument -w 'et' -w 'du'
if not __fish_seen_argument -w et -w du
echo -e '/et\tSpecify the end time for the task
/du\tA value that specifies the duration'
end
if not __fish_seen_argument -w 'ENABLE' -w 'DISABLE'
if not __fish_seen_argument -w ENABLE -w DISABLE
echo -e '/ENABLE\tSpecify to enable the scheduled task
/DISABLE\tSpecify to disable the scheduled task'
end
@ -47,7 +47,7 @@ function __schtasks_change_complete_args -a previous_token
end
function __schtasks_create_complete_args -a previous_token
if test "$previous_token" = '/sc'
if test "$previous_token" = /sc
echo -e 'MINUTE\tSpecify the number of minutes before the task should run
HOURLY\tSpecify the number of hours before the task should run
DAILY\tSpecify the number of days before the task should run
@ -65,7 +65,7 @@ ONIDLE\tSpecify that the task runs whenever the system is idle for a specified p
return
end
if test "$previous_token" = '/mo'
if test "$previous_token" = /mo
echo -e 'MINUTE\tSpecify that the task runs every n minutes
HOURLY\tSpecify that the task runs every n hours
DAILY\tSpecify that the task runs every n days
@ -78,15 +78,15 @@ ONIDLE\tSpecify that the task runs after the system is idle for the number of mi
return
end
if __fish_seen_argument -w 's'
if __fish_seen_argument -w s
echo -e '/u\tRun this command with the permissions of the specified user account'
end
if __fish_seen_argument -w 'u'
if __fish_seen_argument -w u
echo -e '/p\tSpecify the password of the user account specified in the /u parameter'
end
if not __fish_seen_argument -w 'et' -w 'du'
if not __fish_seen_argument -w et -w du
echo -e '/et\tSpecify the time of day that a minute or hourly task schedule ends
/du\tSpecify a maximum length of time for a minute or hourly schedule'
end
@ -113,21 +113,21 @@ ONIDLE\tSpecify that the task runs after the system is idle for the number of mi
end
function __schtasks_delete_complete_args -a previous_token
if test "$previous_token" = '/tn'
if test "$previous_token" = /tn
__schtasks_print_tasks
return
end
if test "$previous_token" = '/u'
if test "$previous_token" = /u
__fish_print_windows_users
return
end
if __fish_seen_argument -w 's'
if __fish_seen_argument -w s
echo -e '/u\tRun this command with the permissions of the specified user account'
end
if __fish_seen_argument -w 'u'
if __fish_seen_argument -w u
echo -e '/p\tSpecify the password of the user account specified in the /u parameter'
end
@ -138,21 +138,21 @@ function __schtasks_delete_complete_args -a previous_token
end
function __schtasks_end_complete_args -a previous_token
if test "$previous_token" = '/tn'
if test "$previous_token" = /tn
__schtasks_print_tasks
return
end
if test "$previous_token" = '/u'
if test "$previous_token" = /u
__fish_print_windows_users
return
end
if __fish_seen_argument -w 's'
if __fish_seen_argument -w s
echo -e '/u\tRun this command with the permissions of the specified user account'
end
if __fish_seen_argument -w 'u'
if __fish_seen_argument -w u
echo -e '/p\tSpecify the password of the user account specified in the /u parameter'
end
@ -162,23 +162,23 @@ function __schtasks_end_complete_args -a previous_token
end
function __schtasks_query_complete_args -a previous_token
if test "$previous_token" = '/fo'
if test "$previous_token" = /fo
echo -e 'TABLE
LIST
CSV'
return
end
if test "$previous_token" = '/u'
if test "$previous_token" = /u
__fish_print_windows_users
return
end
if __fish_seen_argument -w 's'
if __fish_seen_argument -w s
echo -e '/u\tRun this command with the permissions of the specified user account'
end
if __fish_seen_argument -w 'u'
if __fish_seen_argument -w u
echo -e '/p\tSpecify the password of the user account specified in the /u parameter'
end
@ -190,21 +190,21 @@ CSV'
end
function __schtasks_run_complete_args -a previous_token
if test "$previous_token" = '/tn'
if test "$previous_token" = /tn
__schtasks_print_tasks
return
end
if test "$previous_token" = '/u'
if test "$previous_token" = /u
__fish_print_windows_users
return
end
if __fish_seen_argument -w 's'
if __fish_seen_argument -w s
echo -e '/u\tRun this command with the permissions of the specified user account'
end
if __fish_seen_argument -w 'u'
if __fish_seen_argument -w u
echo -e '/p\tSpecify the password of the user account specified in the /u parameter'
end

View file

@ -1,7 +1,7 @@
function __setx_complete_args -d 'Function to generate args'
set -l previous_token (commandline -oc)[-1]
if test "$previous_token" = '/u'
if test "$previous_token" = /u
__fish_print_windows_users
return
end