lib/agile_utils/cli.rb in agile_utils-0.0.2 vs lib/agile_utils/cli.rb in agile_utils-0.0.4
- old
+ new
@@ -1,30 +1,21 @@
require 'thor'
require_relative '../agile_utils'
module AgileUtils
class CLI < Thor
desc 'main', 'Main entry point'
- # method_option :commit,
- # aliases: "-c",
- # desc: "commit your changes",
- # default: false
def main
opts = options.symbolize_keys
-
if opts[:version]
puts "You are using #{AgileUtils::PROJECT_NAME} version #{AgileUtils::VERSION}"
exit
end
-
- puts "FYI: your options #{opts}"
execute(opts)
end
desc "usage", "Display help screen"
def usage
- # Add your usage here (How to automate this task from Vim?)
- # try running :r !./bin/agile_utils help run
puts <<-EOS
Add your usage here.
EOS
end
@@ -32,10 +23,9 @@
private
# @param [Hash<Symbol, Object>] options the options argument
def execute(options = {})
- # TODO: just a place holder for now!
puts "FYI: execute with options: #{options}"
end
end
end