We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96a5b4e commit 087e050Copy full SHA for 087e050
1 file changed
needs-update/custom-completions/auto-generate/parse-fish.nu
@@ -96,15 +96,10 @@ def make-subcommands-completion [parents: list<string>] {
96
| transpose name args # turn it into a table of name to arguments
97
| each {|subcommand|
98
[
99
- # (sub)command description
+ # description
100
(if ('d' in ($subcommand.args | columns)) and ($subcommand.args.d != "") { $"# ($subcommand.args.d.0)\n" })
101
- # extern command
102
- ([
103
- "extern " $quote ($parents | str join " ")
104
- # sub command if present
105
- (if $subcommand.name != "" { [ " " $subcommand.name ] | str join })
106
- $quote
107
- ] | str join)
+ # extern name
+ $'extern "($parents | append $subcommand.name | str join " " | str trim)"'
108
# params
109
" [\n"
110
(
0 commit comments