mirror of
https://github.com/jorgebucaran/fisher
synced 2024-11-09 07:10:27 +00:00
81045ae342
Split help command functionality into individual functions for cosistent with the way other commands are structured, and improve tab completion times by skipping the overhead of calling fisher_help directly.
21 lines
406 B
Fish
21 lines
406 B
Fish
function __fisher_help_commands
|
|
for i in (functions -a | grep -E '^fisher_[^_]+$')
|
|
functions $i | awk '
|
|
|
|
/^$/ { next } {
|
|
printf("%s;", substr($2, 8))
|
|
|
|
gsub("\'", "")
|
|
|
|
for (i = 4; i <= NF && $i !~ /^--.*/; i++) {
|
|
printf("%s ", $i)
|
|
}
|
|
|
|
print ""
|
|
exit
|
|
}
|
|
|
|
'
|
|
end
|
|
end
|