Class: Rigor::CLI::UpgradeCommand

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

Overview

‘rigor upgrade` — the ADR-50 WD7 migration command skeleton.

The real body lands when a concrete backwards-compatibility break gives it a target (e.g. re-running ‘baseline regenerate` against a strengthened default profile, surfacing renamed suppression ids, reporting `bleeding_edge:` graduations). Until then it prints the current version and notes that upgrade is queued.

Constant Summary collapse

USAGE =
"Usage: rigor upgrade [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.



18
19
20
21
22
# File 'lib/rigor/cli/upgrade_command.rb', line 18

def run
  @out.puts("rigor upgrade: No migration target available yet (ADR-50 WD7, queued).")
  @out.puts("Current version: #{Rigor::VERSION}")
  0
end