class Pipely::Options
Options
for running the CLI
Attributes
automatic_open[RW]
input_path[RW]
json_output[RW]
latest_run[RW]
output_path[RW]
pipeline_id[RW]
verbose[RW]
Public Class Methods
parse()
click to toggle source
# File lib/pipely/options.rb, line 12 def self.parse options = Pipely::Options.new OptionParser.new do |opts| opts.banner = "Usage: pipely [options]" opts.on("-p", "--pipeline-id PIPELINE_ID", "ID of a live pipeline to visualize with live statuses") do |id| options.pipeline_id = id end opts.on("-l", "--latest", "Graph only the latest run") do |latest| options.latest_run = latest end opts.on("-i", "--input PATH", "Path to a JSON pipeline definition file to visualize") do |input| options.input_path = input end opts.on("-o", "--output PATH", "Local or S3 path to write Graphviz PNG file(s)") do |output| options.output_path = output end opts.on("-j", "--json", "Write STDOUT formatted as JSON") do |json| options.json_output = json end end.parse! options end