Class: Onceover::CLI::Show::Repo
- Inherits:
-
Object
- Object
- Onceover::CLI::Show::Repo
- Defined in:
- lib/onceover/cli/show.rb
Class Method Summary collapse
Class Method Details
.command ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/onceover/cli/show.rb', line 27 def self.command @cmd ||= Cri::Command.define do name 'repo' usage 'repo [options]' summary 'Shows the current state of the Controlrepo' description <<-DESCRIPTION Shows the state of the repo as the tool sees it. Useful for debugging. DESCRIPTION run do |opts, args, cmd| # Print out the description puts Onceover::Controlrepo.new(opts).to_s exit 0 end end end |