Sha256: 1c31a213df849861ddc202c53917ff03656b9c89084a0f51dc144e409419d3c2

Contents?: true

Size: 398 Bytes

Versions: 3

Compression:

Stored size: 398 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]

      perform("cpl version")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cpl-0.6.0 lib/command/no_command.rb
cpl-0.5.1 lib/command/no_command.rb
cpl-0.5.0 lib/command/no_command.rb