bin/githoog in captain_hoog-1.0.1 vs bin/githoog in captain_hoog-1.0.2

- old
+ new

@@ -17,10 +17,12 @@ class_option :type, type: :string, default: 'pre-commit' class_option :project_dir, type: :string, default: Dir.getwd class_option :plugins_dir, type: :string, default: Dir.getwd + map %w[--version -v] => :__print_version + desc "install","Installs the hook into your Git repository" def install(*args) check_if_git_present check_if_option_present("plugins_dir") # deprecated: @@ -52,9 +54,14 @@ raise Thor::Error else move_hook(options) puts "The #{options[:from]} hook is moved to #{options[:to]} hook.".green end + end + + desc "version, -v", "Prints out the version" + def __print_version + puts CaptainHoog::VERSION end private def is_git_repository?