consistency
This commit is contained in:
@@ -2,5 +2,9 @@
|
|||||||
|
|
||||||
require_relative '../lib/feature/commander'
|
require_relative '../lib/feature/commander'
|
||||||
|
|
||||||
command = Feature::Commander.new(ARGV)
|
commander = Feature::Commander.new(ARGV)
|
||||||
command.execute
|
if commander.valid?
|
||||||
|
commander.execute
|
||||||
|
else
|
||||||
|
commander.help
|
||||||
|
end
|
||||||
|
|||||||
@@ -13,6 +13,14 @@ module Feature
|
|||||||
@argv = argv
|
@argv = argv
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def valid?
|
||||||
|
true
|
||||||
|
end
|
||||||
|
|
||||||
|
def help
|
||||||
|
exit
|
||||||
|
end
|
||||||
|
|
||||||
def execute
|
def execute
|
||||||
command = case argv[0]
|
command = case argv[0]
|
||||||
when "start" then Feature::Start.new(argv)
|
when "start" then Feature::Start.new(argv)
|
||||||
|
|||||||
Reference in New Issue
Block a user