Sha256: 5d1043dd2bfeeb15aa52dd96b2b8a1223122b3c1033c8e82c5ffd93d787cfae1

Contents?: true

Size: 704 Bytes

Versions: 1

Compression:

Stored size: 704 Bytes

Contents

# typed: true
# frozen_string_literal: true

require "thor"

require_relative "cli/commands/config"
require_relative "cli/commands/lsp"
require_relative "cli/commands/run"

module Spoom
  module Cli
    class Main < Thor
      extend T::Sig

      class_option :no_color, desc: "Don't use colors", type: :boolean

      desc "config", "manage Sorbet config"
      subcommand "config", Spoom::Cli::Commands::Config

      desc "lsp", "send LSP requests to Sorbet"
      subcommand "lsp", Spoom::Cli::Commands::LSP

      desc "tc", "run Sorbet and parses its output"
      subcommand "tc", Spoom::Cli::Commands::Run

      # Utils

      def self.exit_on_failure?
        true
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spoom-1.0.4 lib/spoom/cli.rb