Add version flag to tide command

This commit is contained in:
Ilan Cosman 2020-06-06 17:51:24 -07:00
parent 8d1b4de83c
commit 45dfdd62d8
2 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,12 @@
function tide -a subcommand
function tide
argparse 'v/version' -- $argv
set -l subcommand $argv[1]
if set -q _flag_version
printf '%s\n' $_tide_version
return 0
end
set -l tideSubcommand "tide_$subcommand"
set -l tideCommands (basename -a -s '.fish' $_tide_dir/functions/*)

View File

@ -7,6 +7,7 @@ function _set_tide_defaults
set -l tideColorDarkerGreen 5FAF00
# ---------------General Theme Variables---------------
_set _tide_version 1.3.0
_set _tide_dir "$__fish_config_dir/tide_theme"
_set tide_newline 'true'
# --------------Colors--------------