Sha256: 79ab38f90b3310b6ffd673df220a6f3fbbb7184e6b8441730cdff068a5af4515
Contents?: true
Size: 853 Bytes
Versions: 1
Compression:
Stored size: 853 Bytes
Contents
# frozen_string_literal: true require 'specimen/generator' module Specimen module CLI class DefaultCommand < Commands::BaseCommand include Generator namespace :default def self.banner(task, namespace = true, subcommand = false) "#{basename} #{task.name}" end def self.source_root File.dirname(__FILE__) end desc 'init', 'Initialize a new Specimen project' method_option :project_name, aliases: %w[--name -n], type: :string, default: '' method_option :api_only, type: :boolean, default: false method_option :cucumber, type: :boolean, default: true def init SpecimenProject.start([options.dup]) end desc 'commands', 'print all commands' def commands [DefaultCommand].each { |cmd| cmd.new.help } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
specimen-0.0.1.alpha.b | lib/specimen/cli/default_command.rb |