Sha256: be513795965e89c9b02b54b114c8a958288e199ac81b16ffc17ff8157d33566a
Contents?: true
Size: 762 Bytes
Versions: 8
Compression:
Stored size: 762 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 = <<~HEREDOC - Light wrapper to display tailed raw logs for app/workload syntax HEREDOC EXAMPLES = <<~HEREDOC ```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 ``` HEREDOC def call workload = config.options[:workload] || config[:one_off_workload] cp.logs(workload: workload) end end end
Version data entries
8 entries across 8 versions & 1 rubygems