dotfiles/fish/functions/tide.fish

29 lines
819 B
Fish
Raw Normal View History

2023-10-08 22:26:07 -05:00
function tide --description 'Manage your Tide prompt'
argparse --stop-nonopt v/version h/help -- $argv
if set -q _flag_version
echo 'tide, version 6.1.1'
2023-10-08 22:26:07 -05:00
else if set -q _flag_help
_tide_help
else if functions --query _tide_sub_$argv[1]
_tide_sub_$argv[1] $argv[2..]
else
_tide_help
return 1
end
end
function _tide_help
printf %s\n \
'Usage: tide [options] subcommand [options]' \
'' \
'Options:' \
' -v or --version print tide version number' \
' -h or --help print this help message' \
'' \
'Subcommands:' \
' configure run interactive configuration wizard' \
2023-11-20 11:20:55 -06:00
' reload reload tide configuration' \
2023-10-08 22:26:07 -05:00
' bug-report print info for use in bug reports'
end