Sha256: bc9080db5786bfe3274f2961a9ddf2246b180142c715f6bff0ca3057bae7aac5

Contents?: true

Size: 406 Bytes

Versions: 6

Compression:

Stored size: 406 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 = <<~HEREDOC
      - Called when no command was specified
    HEREDOC
    HIDE = true

    def call
      return unless config.options[:version]

      Version.new(config).call
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cpl-0.4.1 lib/command/no_command.rb
cpl-0.4.0 lib/command/no_command.rb
cpl-0.3.3 lib/command/no_command.rb
cpl-0.3.2 lib/command/no_command.rb
cpl-0.3.1 lib/command/no_command.rb
cpl-0.3.0 lib/command/no_command.rb