Sha256: 26663ed4716b1c9e92c1305939bf06e4ecf9163b9d854218bbdd474e924c1384

Contents?: true

Size: 746 Bytes

Versions: 16

Compression:

Stored size: 746 Bytes

Contents

# frozen_string_literal: true

module Command
  class Logs < Base
    NAME = "logs"
    OPTIONS = [
      app_option(required: true),
      workload_option
    ].freeze
    DESCRIPTION = "Light wrapper to display tailed raw logs for app/workload syntax"
    LONG_DESCRIPTION = <<~DESC
      - Light wrapper to display tailed raw logs for app/workload syntax
    DESC
    EXAMPLES = <<~EX
      ```sh
      # Displays logs for the default workload (`one_off_workload`).
      cpl logs -a $APP_NAME

      # Displays logs for a specific workload.
      cpl logs -a $APP_NAME -w $WORKLOAD_NAME
      ```
    EX

    def call
      workload = config.options[:workload] || config[:one_off_workload]
      cp.logs(workload: workload)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cpl-1.4.0 lib/command/logs.rb
cpl-1.3.0 lib/command/logs.rb
cpl-1.2.0 lib/command/logs.rb
cpl-1.1.2 lib/command/logs.rb
cpl-1.1.2.rc.0 lib/command/logs.rb
cpl-1.1.1 lib/command/logs.rb
cpl-1.1.0 lib/command/logs.rb
cpl-1.0.4 lib/command/logs.rb
cpl-1.0.3 lib/command/logs.rb
cpl-1.0.2 lib/command/logs.rb
cpl-1.0.1 lib/command/logs.rb
cpl-1.0.0 lib/command/logs.rb
cpl-0.7.0 lib/command/logs.rb
cpl-0.6.0 lib/command/logs.rb
cpl-0.5.1 lib/command/logs.rb
cpl-0.5.0 lib/command/logs.rb