File tree 1 file changed +8
-2
lines changed
needs-update/custom-completions/auto-generate
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -122,11 +122,17 @@ def make-subcommands-completion [parents: list<string>] {
122
122
123
123
$fishes
124
124
| group-by arguments # group by sub command (arguments flag)
125
- | transpose name args # turn it into a table of name to arguments
125
+ | transpose name args # turn it into a table of name to arguments
126
126
| each {|subcommand |
127
127
[
128
128
# description
129
- (if (' description' in ($subcommand.args | columns )) and ($subcommand.args.description != " " ) { $" # ($subcommand.args.description.0 )\n " })
129
+ (
130
+ if ((' description' in ($subcommand.args | columns ))
131
+ and ($subcommand.args.description != " " )
132
+ and (' condition' in ($subcommand.args | columns ))
133
+ and ($subcommand.args.condition == " __fish_use_subcommand" )
134
+ ) { $" # ($subcommand.args.description )\n " }
135
+ )
130
136
# extern name
131
137
$' extern "($parents | append $subcommand.name | str join " " | str trim )"'
132
138
# params
You can’t perform that action at this time.
0 commit comments