Sha256: a049fe385b81d37bedd6e348e068e7973d54f6b0f94be0b7fe042fcd3e7043cd

Contents?: true

Size: 1.08 KB

Versions: 19

Compression:

Stored size: 1.08 KB

Contents

# typed: true
# frozen_string_literal: true

require_relative "../file_tree"
require_relative "../sorbet/config"

module Spoom
  module Cli
    class Config < Thor
      include Helper

      default_task :show

      desc "show", "Show Sorbet config"
      def show
        in_sorbet_project!
        config = sorbet_config

        say("Found Sorbet config at `#{sorbet_config_file}`.")

        say("\nPaths typechecked:")
        if config.paths.empty?
          say(" * (default: .)")
        else
          config.paths.each do |path|
            say(" * #{path}")
          end
        end

        say("\nPaths ignored:")
        if config.ignore.empty?
          say(" * (default: none)")
        else
          config.ignore.each do |path|
            say(" * #{path}")
          end
        end

        say("\nAllowed extensions:")
        if config.allowed_extensions.empty?
          say(" * .rb (default)")
          say(" * .rbi (default)")
        else
          config.allowed_extensions.each do |ext|
            say(" * #{ext}")
          end
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
spoom-1.1.16 lib/spoom/cli/config.rb
devcycle-ruby-server-sdk-2.0.0 vendor/bundle/ruby/3.0.0/gems/spoom-1.1.15/lib/spoom/cli/config.rb
spoom-1.1.15 lib/spoom/cli/config.rb
spoom-1.1.14 lib/spoom/cli/config.rb
spoom-1.1.13 lib/spoom/cli/config.rb
spoom-1.1.12 lib/spoom/cli/config.rb
spoom-1.1.11 lib/spoom/cli/config.rb
spoom-1.1.10 lib/spoom/cli/config.rb
spoom-1.1.9 lib/spoom/cli/config.rb
spoom-1.1.8 lib/spoom/cli/config.rb
spoom-1.1.7 lib/spoom/cli/config.rb
spoom-1.1.6 lib/spoom/cli/config.rb
spoom-1.1.5 lib/spoom/cli/config.rb
spoom-1.1.4 lib/spoom/cli/config.rb
spoom-1.1.3 lib/spoom/cli/config.rb
spoom-1.1.2 lib/spoom/cli/config.rb
spoom-1.1.1 lib/spoom/cli/config.rb
spoom-1.1.0 lib/spoom/cli/config.rb
spoom-1.0.9 lib/spoom/cli/config.rb