You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tests/ArgumentParserExampleTests/MathExampleTests.swift
+31-31Lines changed: 31 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -545,8 +545,8 @@ _math
545
545
"""
546
546
547
547
privateletfishCompletionScriptText="""
548
-
function __fish_math_using_command
549
-
set cmd (commandline -opc)
548
+
function _swift_math_using_command
549
+
set -l cmd (commandline -opc)
550
550
if [ (count $cmd) -eq (count $argv) ]
551
551
for i in (seq (count $argv))
552
552
if [ $cmd[$i] != $argv[$i] ]
@@ -557,33 +557,33 @@ function __fish_math_using_command
557
557
end
558
558
return 1
559
559
end
560
-
complete -c math -n '__fish_math_using_command math' -f -l version -d 'Show the version.'
561
-
complete -c math -n '__fish_math_using_command math' -f -s h -l help -d 'Show help information.'
562
-
complete -c math -n '__fish_math_using_command math' -f -a 'add' -d 'Print the sum of the values.'
563
-
complete -c math -n '__fish_math_using_command math' -f -a 'multiply' -d 'Print the product of the values.'
564
-
complete -c math -n '__fish_math_using_command math' -f -a 'stats' -d 'Calculate descriptive statistics.'
565
-
complete -c math -n '__fish_math_using_command math' -f -a 'help' -d 'Show subcommand help information.'
566
-
complete -c math -n '__fish_math_using_command math add' -f -l hex-output -s x -d 'Use hexadecimal notation for the result.'
567
-
complete -c math -n '__fish_math_using_command math add' -f -s h -l help -d 'Show help information.'
568
-
complete -c math -n '__fish_math_using_command math multiply' -f -l hex-output -s x -d 'Use hexadecimal notation for the result.'
569
-
complete -c math -n '__fish_math_using_command math multiply' -f -s h -l help -d 'Show help information.'
570
-
complete -c math -n '__fish_math_using_command math stats' -f -s h -l help -d 'Show help information.'
571
-
complete -c math -n '__fish_math_using_command math stats' -f -a 'average' -d 'Print the average of the values.'
572
-
complete -c math -n '__fish_math_using_command math stats' -f -a 'stdev' -d 'Print the standard deviation of the values.'
573
-
complete -c math -n '__fish_math_using_command math stats' -f -a 'quantiles' -d 'Print the quantiles of the values (TBD).'
574
-
complete -c math -n '__fish_math_using_command math stats' -f -a 'help' -d 'Show subcommand help information.'
575
-
complete -c math -n '__fish_math_using_command math stats average' -f -r -l kind -d 'The kind of average to provide.'
576
-
complete -c math -n '__fish_math_using_command math stats average --kind' -f -k -a 'mean median mode'
577
-
complete -c math -n '__fish_math_using_command math stats average' -f -l version -d 'Show the version.'
578
-
complete -c math -n '__fish_math_using_command math stats average' -f -s h -l help -d 'Show help information.'
579
-
complete -c math -n '__fish_math_using_command math stats stdev' -f -s h -l help -d 'Show help information.'
580
-
complete -c math -n '__fish_math_using_command math stats quantiles' -f -r -l file
581
-
complete -c math -n '__fish_math_using_command math stats quantiles --file' -f -a '(for i in *.{txt,md}; echo $i;end)'
582
-
complete -c math -n '__fish_math_using_command math stats quantiles' -f -r -l directory
583
-
complete -c math -n '__fish_math_using_command math stats quantiles --directory' -f -a '(__fish_complete_directories)'
584
-
complete -c math -n '__fish_math_using_command math stats quantiles' -f -r -l shell
585
-
complete -c math -n '__fish_math_using_command math stats quantiles --shell' -f -a '(head -100 /usr/share/dict/words | tail -50)'
586
-
complete -c math -n '__fish_math_using_command math stats quantiles' -f -r -l custom
587
-
complete -c math -n '__fish_math_using_command math stats quantiles --custom' -f -a '(command math ---completion stats quantiles -- --custom (commandline -opc)[1..-1])'
588
-
complete -c math -n '__fish_math_using_command math stats quantiles' -f -s h -l help -d 'Show help information.'
560
+
complete -c math -n '_swift_math_using_command math' -f -l version -d 'Show the version.'
561
+
complete -c math -n '_swift_math_using_command math' -f -s h -l help -d 'Show help information.'
562
+
complete -c math -n '_swift_math_using_command math' -f -a 'add' -d 'Print the sum of the values.'
563
+
complete -c math -n '_swift_math_using_command math' -f -a 'multiply' -d 'Print the product of the values.'
564
+
complete -c math -n '_swift_math_using_command math' -f -a 'stats' -d 'Calculate descriptive statistics.'
565
+
complete -c math -n '_swift_math_using_command math' -f -a 'help' -d 'Show subcommand help information.'
566
+
complete -c math -n '_swift_math_using_command math add' -f -l hex-output -s x -d 'Use hexadecimal notation for the result.'
567
+
complete -c math -n '_swift_math_using_command math add' -f -s h -l help -d 'Show help information.'
568
+
complete -c math -n '_swift_math_using_command math multiply' -f -l hex-output -s x -d 'Use hexadecimal notation for the result.'
569
+
complete -c math -n '_swift_math_using_command math multiply' -f -s h -l help -d 'Show help information.'
570
+
complete -c math -n '_swift_math_using_command math stats' -f -s h -l help -d 'Show help information.'
571
+
complete -c math -n '_swift_math_using_command math stats' -f -a 'average' -d 'Print the average of the values.'
572
+
complete -c math -n '_swift_math_using_command math stats' -f -a 'stdev' -d 'Print the standard deviation of the values.'
573
+
complete -c math -n '_swift_math_using_command math stats' -f -a 'quantiles' -d 'Print the quantiles of the values (TBD).'
574
+
complete -c math -n '_swift_math_using_command math stats' -f -a 'help' -d 'Show subcommand help information.'
575
+
complete -c math -n '_swift_math_using_command math stats average' -f -r -l kind -d 'The kind of average to provide.'
576
+
complete -c math -n '_swift_math_using_command math stats average --kind' -f -k -a 'mean median mode'
577
+
complete -c math -n '_swift_math_using_command math stats average' -f -l version -d 'Show the version.'
578
+
complete -c math -n '_swift_math_using_command math stats average' -f -s h -l help -d 'Show help information.'
579
+
complete -c math -n '_swift_math_using_command math stats stdev' -f -s h -l help -d 'Show help information.'
580
+
complete -c math -n '_swift_math_using_command math stats quantiles' -f -r -l file
581
+
complete -c math -n '_swift_math_using_command math stats quantiles --file' -f -a '(for i in *.{txt,md}; echo $i;end)'
582
+
complete -c math -n '_swift_math_using_command math stats quantiles' -f -r -l directory
583
+
complete -c math -n '_swift_math_using_command math stats quantiles --directory' -f -a '(__fish_complete_directories)'
584
+
complete -c math -n '_swift_math_using_command math stats quantiles' -f -r -l shell
585
+
complete -c math -n '_swift_math_using_command math stats quantiles --shell' -f -a '(head -100 /usr/share/dict/words | tail -50)'
586
+
complete -c math -n '_swift_math_using_command math stats quantiles' -f -r -l custom
587
+
complete -c math -n '_swift_math_using_command math stats quantiles --custom' -f -a '(command math ---completion stats quantiles -- --custom (commandline -opc)[1..-1])'
588
+
complete -c math -n '_swift_math_using_command math stats quantiles' -f -s h -l help -d 'Show help information.'
0 commit comments