mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Run fish_indent over new Windows completions
This commit is contained in:
parent
cdae6536fd
commit
b8fd6b5f31
11 changed files with 233 additions and 233 deletions
|
@ -1,7 +1,7 @@
|
||||||
function __cleanmgr_complete_args -d 'Function to generate args'
|
function __cleanmgr_complete_args -d 'Function to generate args'
|
||||||
set -l previous_token (commandline -oc)[-1]
|
set -l previous_token (commandline -oc)[-1]
|
||||||
|
|
||||||
if test "$previous_token" = '/d'
|
if test "$previous_token" = /d
|
||||||
__fish_print_windows_drives
|
__fish_print_windows_drives
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,7 +6,7 @@ function __cmdkey_complete_args -d 'Function to generate args'
|
||||||
case '/user:*'
|
case '/user:*'
|
||||||
__fish_print_windows_users | awk "{ printf \"%s%s\n\", \"$current_token\", \$0 }"
|
__fish_print_windows_users | awk "{ printf \"%s%s\n\", \"$current_token\", \$0 }"
|
||||||
case '*'
|
case '*'
|
||||||
if test "$previous_token" = '/delete'
|
if test "$previous_token" = /delete
|
||||||
echo -e '/ras\tDelete remote access entry'
|
echo -e '/ras\tDelete remote access entry'
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
function __reg_add_complete_args -a previous_token
|
function __reg_add_complete_args -a previous_token
|
||||||
if test "$previous_token" = '/t'
|
if test "$previous_token" = /t
|
||||||
echo 'REG_SZ
|
echo 'REG_SZ
|
||||||
REG_MULTI_SZ
|
REG_MULTI_SZ
|
||||||
REG_DWORD_BIG_ENDIAN
|
REG_DWORD_BIG_ENDIAN
|
||||||
|
@ -12,7 +12,7 @@ REG_EXPAND_SZ'
|
||||||
return
|
return
|
||||||
end
|
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
|
echo -e '/v\tSpecify the name of the add registry entry
|
||||||
/ve\tSpecify that the added registry entry has a null value'
|
/ve\tSpecify that the added registry entry has a null value'
|
||||||
end
|
end
|
||||||
|
@ -25,12 +25,12 @@ REG_EXPAND_SZ'
|
||||||
end
|
end
|
||||||
|
|
||||||
function __reg_compare_complete_args
|
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
|
echo -e '/v\tSpecify the value name
|
||||||
/ve\tSpecify that only entries that have a value name of null should be compared'
|
/ve\tSpecify that only entries that have a value name of null should be compared'
|
||||||
end
|
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
|
echo -e '/oa\tSpecify that all differences and matches are displayed
|
||||||
/od\tSpecify that only differences are displayed
|
/od\tSpecify that only differences are displayed
|
||||||
/os\tSpecify that only matches are displayed
|
/os\tSpecify that only matches are displayed
|
||||||
|
@ -48,7 +48,7 @@ function __reg_copy_complete_args
|
||||||
end
|
end
|
||||||
|
|
||||||
function __reg_delete_complete_args
|
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
|
echo -e '/v\tDelete a specific entry under the subkey
|
||||||
/ve\tSpecify that only entries that have no value will be deleted
|
/ve\tSpecify that only entries that have no value will be deleted
|
||||||
/va\tDelete all entries under the specified subkey'
|
/va\tDelete all entries under the specified subkey'
|
||||||
|
@ -64,7 +64,7 @@ function __reg_export_complete_args
|
||||||
end
|
end
|
||||||
|
|
||||||
function __reg_query_complete_args -a previous_token
|
function __reg_query_complete_args -a previous_token
|
||||||
if test "$previous_token" = '/t'
|
if test "$previous_token" = /t
|
||||||
echo 'REG_SZ
|
echo 'REG_SZ
|
||||||
REG_MULTI_SZ
|
REG_MULTI_SZ
|
||||||
REG_EXPAND_SZ
|
REG_EXPAND_SZ
|
||||||
|
@ -74,12 +74,12 @@ REG_NONE'
|
||||||
return
|
return
|
||||||
end
|
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
|
echo -e '/v\tSpecify the registry value name
|
||||||
/ve\tRun a query for value names that are empty'
|
/ve\tRun a query for value names that are empty'
|
||||||
end
|
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
|
echo -e '/k\tSpecify to search in key names only
|
||||||
/d\tSpecify to search in data only'
|
/d\tSpecify to search in data only'
|
||||||
end
|
end
|
||||||
|
|
|
@ -3,7 +3,7 @@ function __schtasks_print_tasks -d 'Helper function to print tasks'
|
||||||
end
|
end
|
||||||
|
|
||||||
function __schtasks_change_complete_args -a previous_token
|
function __schtasks_change_complete_args -a previous_token
|
||||||
if test "$previous_token" = '/tn'
|
if test "$previous_token" = /tn
|
||||||
__schtasks_print_tasks
|
__schtasks_print_tasks
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -13,20 +13,20 @@ function __schtasks_change_complete_args -a previous_token
|
||||||
return
|
return
|
||||||
end
|
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'
|
echo -e '/u\tRun this command with the permissions of the specified user account'
|
||||||
end
|
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'
|
echo -e '/p\tSpecify the password of the user account specified in the /u parameter'
|
||||||
end
|
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
|
echo -e '/et\tSpecify the end time for the task
|
||||||
/du\tA value that specifies the duration'
|
/du\tA value that specifies the duration'
|
||||||
end
|
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
|
echo -e '/ENABLE\tSpecify to enable the scheduled task
|
||||||
/DISABLE\tSpecify to disable the scheduled task'
|
/DISABLE\tSpecify to disable the scheduled task'
|
||||||
end
|
end
|
||||||
|
@ -47,7 +47,7 @@ function __schtasks_change_complete_args -a previous_token
|
||||||
end
|
end
|
||||||
|
|
||||||
function __schtasks_create_complete_args -a previous_token
|
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
|
echo -e 'MINUTE\tSpecify the number of minutes before the task should run
|
||||||
HOURLY\tSpecify the number of hours 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
|
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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if test "$previous_token" = '/mo'
|
if test "$previous_token" = /mo
|
||||||
echo -e 'MINUTE\tSpecify that the task runs every n minutes
|
echo -e 'MINUTE\tSpecify that the task runs every n minutes
|
||||||
HOURLY\tSpecify that the task runs every n hours
|
HOURLY\tSpecify that the task runs every n hours
|
||||||
DAILY\tSpecify that the task runs every n days
|
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
|
return
|
||||||
end
|
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'
|
echo -e '/u\tRun this command with the permissions of the specified user account'
|
||||||
end
|
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'
|
echo -e '/p\tSpecify the password of the user account specified in the /u parameter'
|
||||||
end
|
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
|
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'
|
/du\tSpecify a maximum length of time for a minute or hourly schedule'
|
||||||
end
|
end
|
||||||
|
@ -113,21 +113,21 @@ ONIDLE\tSpecify that the task runs after the system is idle for the number of mi
|
||||||
end
|
end
|
||||||
|
|
||||||
function __schtasks_delete_complete_args -a previous_token
|
function __schtasks_delete_complete_args -a previous_token
|
||||||
if test "$previous_token" = '/tn'
|
if test "$previous_token" = /tn
|
||||||
__schtasks_print_tasks
|
__schtasks_print_tasks
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if test "$previous_token" = '/u'
|
if test "$previous_token" = /u
|
||||||
__fish_print_windows_users
|
__fish_print_windows_users
|
||||||
return
|
return
|
||||||
end
|
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'
|
echo -e '/u\tRun this command with the permissions of the specified user account'
|
||||||
end
|
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'
|
echo -e '/p\tSpecify the password of the user account specified in the /u parameter'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -138,21 +138,21 @@ function __schtasks_delete_complete_args -a previous_token
|
||||||
end
|
end
|
||||||
|
|
||||||
function __schtasks_end_complete_args -a previous_token
|
function __schtasks_end_complete_args -a previous_token
|
||||||
if test "$previous_token" = '/tn'
|
if test "$previous_token" = /tn
|
||||||
__schtasks_print_tasks
|
__schtasks_print_tasks
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if test "$previous_token" = '/u'
|
if test "$previous_token" = /u
|
||||||
__fish_print_windows_users
|
__fish_print_windows_users
|
||||||
return
|
return
|
||||||
end
|
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'
|
echo -e '/u\tRun this command with the permissions of the specified user account'
|
||||||
end
|
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'
|
echo -e '/p\tSpecify the password of the user account specified in the /u parameter'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -162,23 +162,23 @@ function __schtasks_end_complete_args -a previous_token
|
||||||
end
|
end
|
||||||
|
|
||||||
function __schtasks_query_complete_args -a previous_token
|
function __schtasks_query_complete_args -a previous_token
|
||||||
if test "$previous_token" = '/fo'
|
if test "$previous_token" = /fo
|
||||||
echo -e 'TABLE
|
echo -e 'TABLE
|
||||||
LIST
|
LIST
|
||||||
CSV'
|
CSV'
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if test "$previous_token" = '/u'
|
if test "$previous_token" = /u
|
||||||
__fish_print_windows_users
|
__fish_print_windows_users
|
||||||
return
|
return
|
||||||
end
|
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'
|
echo -e '/u\tRun this command with the permissions of the specified user account'
|
||||||
end
|
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'
|
echo -e '/p\tSpecify the password of the user account specified in the /u parameter'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -190,21 +190,21 @@ CSV'
|
||||||
end
|
end
|
||||||
|
|
||||||
function __schtasks_run_complete_args -a previous_token
|
function __schtasks_run_complete_args -a previous_token
|
||||||
if test "$previous_token" = '/tn'
|
if test "$previous_token" = /tn
|
||||||
__schtasks_print_tasks
|
__schtasks_print_tasks
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if test "$previous_token" = '/u'
|
if test "$previous_token" = /u
|
||||||
__fish_print_windows_users
|
__fish_print_windows_users
|
||||||
return
|
return
|
||||||
end
|
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'
|
echo -e '/u\tRun this command with the permissions of the specified user account'
|
||||||
end
|
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'
|
echo -e '/p\tSpecify the password of the user account specified in the /u parameter'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
function __setx_complete_args -d 'Function to generate args'
|
function __setx_complete_args -d 'Function to generate args'
|
||||||
set -l previous_token (commandline -oc)[-1]
|
set -l previous_token (commandline -oc)[-1]
|
||||||
|
|
||||||
if test "$previous_token" = '/u'
|
if test "$previous_token" = /u
|
||||||
__fish_print_windows_users
|
__fish_print_windows_users
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue