Sha256: e4d1ef63f4da6dd55d15ba5e032412c74f43f3e9dd999749a7bca97551bc6c8b

Contents?: true

Size: 1.36 KB

Versions: 8

Compression:

Stored size: 1.36 KB

Contents

# frozen_string_literal: true

require_relative '../lib/commands/open_ai_commands'
require_relative '../lib/commands/scaffolding_commands'
require_relative '../lib/commands/utility_commands'
require_relative '../lib/desktop/screens/runner_screen'

# :reek:FeatureEnvy { enabled: false }
# :reek:UtilityFunction { enabled: false }
module RubyRaider
  class Raider < Thor
    desc 'new [PROJECT_NAME]', 'Creates a new framework based on settings picked'

    def new(project_name)
      MenuGenerator.new(project_name).generate_choice_menu
    end

    map '-n' => 'new'

    desc 'open', 'It opens the Ruby Raider desktop app'

    def open
      RunnerScreen.new.launch
    end

    desc 'version', 'It shows the version of Ruby Raider you are currently using'

    def version
      spec = Gem::Specification.find_by_name('ruby_raider')
      version = spec.version
      puts "The Ruby Raider version is #{version}, Happy testing!"
    end

    map 'v' => 'version'

    desc 'generate', 'Provides access to all the generator commands'
    subcommand 'generate', ScaffoldingCommands
    map 'g' => 'generate'

    desc 'open_ai', 'Provides access to all the open ai commands'
    subcommand 'open_ai', OpenAiCommands
    map 'o' => 'open_ai'

    desc 'utility', 'Provides access to all the utility commands'
    subcommand 'utility', UtilityCommands
    map 'u' => 'utility'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby_raider-0.6.8 lib/ruby_raider.rb
ruby_raider-0.6.7 lib/ruby_raider.rb
ruby_raider-0.6.6 lib/ruby_raider.rb
ruby_raider-0.6.5 lib/ruby_raider.rb
ruby_raider-0.6.4 lib/ruby_raider.rb
ruby_raider-0.6.3 lib/ruby_raider.rb
ruby_raider-0.6.2 lib/ruby_raider.rb
ruby_raider-0.6.1 lib/ruby_raider.rb