Sha256: df80de6fb40a97005afd093d636656f77fe05944405a9fa17f477bf150bdc65f

Contents?: true

Size: 403 Bytes

Versions: 9

Compression:

Stored size: 403 Bytes

Contents

# frozen_string_literal: true

module Command
  class NoCommand < Base
    NAME = "no-command"
    OPTIONS = [version_option].freeze
    DESCRIPTION = "Called when no command was specified"
    LONG_DESCRIPTION = <<~DESC
      - Called when no command was specified
    DESC
    HIDE = true

    def call
      return unless config.options[:version]

      Cpl::Cli.start(["version"])
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cpl-1.1.2.rc.0 lib/command/no_command.rb
cpl-1.1.1 lib/command/no_command.rb
cpl-1.1.0 lib/command/no_command.rb
cpl-1.0.4 lib/command/no_command.rb
cpl-1.0.3 lib/command/no_command.rb
cpl-1.0.2 lib/command/no_command.rb
cpl-1.0.1 lib/command/no_command.rb
cpl-1.0.0 lib/command/no_command.rb
cpl-0.7.0 lib/command/no_command.rb