lib/jets/cli.rb in jets-0.0.1 vs lib/jets/cli.rb in jets-0.2.0

- old
+ new

@@ -5,15 +5,19 @@ class CLI < Command class_option :verbose, type: :boolean class_option :noop, type: :boolean - desc "hello NAME", "say hello to NAME" - long_desc Help.hello - option :from, desc: "from person" - def hello(name) - puts "from: #{options[:from]}" if options[:from] - puts "Hello #{name}" + desc "build", "Builds and prepares project for Lambda" + long_desc Help.build + option :force, type: :boolean, aliases: "-f", desc: "override existing starter files" + option :quiet, type: :boolean, aliases: "-q", desc: "silence the output" + option :format, type: :string, default: "yaml", desc: "starter project template format: json or yaml" + def build + Jets::Build.new(options).run end + desc "process TYPE", "process subcommand tasks" + long_desc Help.process + subcommand "process", Jets::Process end end