class MMVE::CLI

Constants

USAGE

Attributes

editor[R]
renamer[R]

Public Class Methods

new(env, arguments, **opts) click to toggle source
Calls superclass method
# File lib/mmve/cli.rb, line 5
def initialize env, arguments, **opts
  super
  @editor   = opts[:editor] || Editor.new(ENV['EDITOR'])
  @renamer  = opts[:renamer] || Renamer.new
end

Public Instance Methods

run() click to toggle source
# File lib/mmve/cli.rb, line 16
def run
  usage! unless arguments.any?
  renamer.rename arguments, editor.edit(arguments)
end
setup() click to toggle source
# File lib/mmve/cli.rb, line 11
def setup
  banner USAGE
  flag_version MMVE::VERSION
end