Sha256: eb8d6db5252a9844e88a3dd058497496f3bc6d4817a8c5f60ad9a0580d320744

Contents?: true

Size: 1.5 KB

Versions: 26

Compression:

Stored size: 1.5 KB

Contents

require "souls"
module Souls
  class CLI < Thor
    desc "generate [COMMAND]", "SOULs Generate Commands"
    subcommand "generate", Generate

    desc "update [COMMAND]", "SOULs Update Commands"
    subcommand "update", Update

    desc "create [COMMAND]", "SOULs Create Worker"
    subcommand "create", Create

    desc "db [COMMAND]", "SOULs DB Commands"
    subcommand "db", DB

    desc "docker [COMMAND]", "SOULs Docker Commands"
    subcommand "docker", Docker

    desc "gcloud [COMMAND]", "SOULs Gcloud Commands"
    subcommand "gcloud", Gcloud

    desc "sync", " SOULs Sync Commands"
    subcommand "sync", Sync

    desc "upgrade [COMMAND]", "SOULs Upgrade Commands"
    subcommand "upgrade", Upgrade

    # rubocop:disable Style/StringHashKeys
    map "c" => :console
    map "s" => :server
    map "g" => :generate
    map "t" => :test
    map ["-v", "--v", "--version", "-version"] => :version
    # rubocop:enable Style/StringHashKeys

    desc "version", "SOULs Version"
    def version
      puts(Souls::VERSION)
    end

    desc "test", "Run Rspec & Rubocop"
    def test
      system("rubocop -A")
      system("bundle exec rspec")
    end

    desc "test_all", "Run (Rspec & steep check & Rubocop)"
    def test_all
      Dir.chdir(Souls.get_mother_path.to_s) do
        system("steep check")
      end
      system("rubocop -A")
      system("bundle exec rspec")
    end

    desc "check", "Run steep check"
    def check
      system("steep check")
    end

    def self.exit_on_failure?
      false
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
souls-0.66.1 lib/souls/cli.rb
souls-0.66.0 lib/souls/cli.rb
souls-0.65.5 lib/souls/cli.rb
souls-0.65.4 lib/souls/cli.rb
souls-0.65.3 lib/souls/cli.rb
souls-0.65.2 lib/souls/cli.rb
souls-0.65.1 lib/souls/cli.rb
souls-0.65.0 lib/souls/cli.rb
souls-0.64.3 lib/souls/cli.rb
souls-0.64.2 lib/souls/cli.rb
souls-0.64.1 lib/souls/cli.rb
souls-0.64.0 lib/souls/cli.rb
souls-0.63.6 lib/souls/cli.rb
souls-0.63.5 lib/souls/cli.rb
souls-0.63.4 lib/souls/cli.rb
souls-0.63.3 lib/souls/cli.rb
souls-0.63.2 lib/souls/cli.rb
souls-0.63.1 lib/souls/cli.rb
souls-0.63.0 lib/souls/cli.rb
souls-0.62.1 lib/souls/cli.rb