class VCLog::CLI::Autotag

Public Class Methods

terms() click to toggle source
# File lib/vclog/cli/autotag.rb, line 9
def self.terms
  ['autotag']
end

Public Instance Methods

execute() click to toggle source
# File lib/vclog/cli/autotag.rb, line 30
def execute
  repo.autotag(options[:prefix])
end
parser() click to toggle source
Calls superclass method VCLog::CLI::Abstract#parser
# File lib/vclog/cli/autotag.rb, line 14
def parser
  super do |opt|
    opt.banner = "Usage: vclog autotag"
    opt.separator(" ")
    opt.separator("DESCRIPTION:")
    opt.separator("  Ensure each entry in History has been tagged.")
    opt.separator(" ")
    opt.separator("SPECIAL OPTIONS:")
    opt.on('--prefix', '-p', 'tag label prefix'){ options[:prefix] = true }
    opt.on('--file'  , '-f FILE', 'specify history file'){ options[:history_file] = file }
    opt.on('--force' , '-y', 'perform tagging without confirmation'){ options[:force] = true }
    opt.on('--dryrun', '-n', 'run in dryrun mode'){ $DRYRUN = true }
  end
end