Sha256: 2e7982ae1e9339909b66f752451a22f0c46980c3f193b7cb92d10e2a29b29b00

Contents?: true

Size: 570 Bytes

Versions: 3

Compression:

Stored size: 570 Bytes

Contents

# typed: true
require 'cli/kit'

module CLI
  module Kit
    class BaseCommand
      extend T::Sig
      extend T::Helpers
      include CLI::Kit::CommandHelp
      extend CLI::Kit::CommandHelp::ClassMethods
      abstract!

      sig { returns(T::Boolean) }
      def self.defined?
        true
      end

      sig { params(args: T::Array[String], command_name: String).void }
      def self.call(args, command_name)
        new.call(args, command_name)
      end

      sig { returns(T::Boolean) }
      def has_subcommands?
        false
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gorails-0.1.5 vendor/deps/cli-kit/lib/cli/kit/base_command.rb
gorails-0.1.4 vendor/deps/cli-kit/lib/cli/kit/base_command.rb
gorails-0.1.3 vendor/deps/cli-kit/lib/cli/kit/base_command.rb