Class: Rigor::CLI::ShowBleedingedgeCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/rigor/cli/show_bleedingedge_command.rb

Overview

Executes rigor show-bleedingedge (ADR-50 § WD2).

Prints the bleeding-edge overlay — the Rigor-maintained set of the next major's queued changes (BleedingEdge) — as an explicit list, and reports which of them the project's bleeding_edge: configuration adopts. The overlay is empty in this release, so the command currently reports an empty set; it becomes the inspection surface ADR-50 describes once a feature is queued.

Read-only: it loads .rigor.yml to resolve the active selection but runs no analysis.

Constant Summary collapse

USAGE =
"Usage: rigor show-bleedingedge [options]"

Instance Method Summary collapse

Methods inherited from Command

#initialize

Constructor Details

This class inherits a constructor from Rigor::CLI::Command

Instance Method Details

#runInteger

Returns CLI exit status.

Returns:

  • (Integer)

    CLI exit status.



24
25
26
27
28
29
30
31
32
33
34
# File 'lib/rigor/cli/show_bleedingedge_command.rb', line 24

def run
  options = parse_options
  configuration = load_configuration(options)
  return CLI::EXIT_USAGE if configuration.nil?

  case options.fetch(:format)
  when "json" then render_json(configuration)
  else render_text(configuration)
  end
  0
end