mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
93eae8a341
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.
14 lines
331 B
Fish
14 lines
331 B
Fish
function __fisher_help_usage -a value
|
|
if test -z "$value"
|
|
set -e value
|
|
sed -E 's/^ *([^ ]+).*/\1/' | while read -l command
|
|
if functions -q fisher_$command
|
|
set value $command $value
|
|
end
|
|
end
|
|
end
|
|
|
|
for command in $value
|
|
fisher $command -h
|
|
end
|
|
end
|