mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-25 22:13:46 +03:00
28 lines
656 B
Fish
28 lines
656 B
Fish
function tide --description 'Manage your Tide prompt'
|
|
argparse --stop-nonopt v/version h/help -- $argv
|
|
|
|
if set -q _flag_version
|
|
echo 'tide, version 5.0.1'
|
|
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
|
|
echo "\
|
|
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
|
|
bug-report print info for use in bug reports"
|
|
end
|