Class: RubynCode::CLI::Commands::ChiselAudit

Inherits:
Base
  • Object
show all
Defined in:
lib/rubyn_code/cli/commands/chisel_audit.rb

Overview

‘/chisel-audit` — sweep the repo (or a path) for accumulated over-engineering and report a ranked deletion list. Read-only.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

aliases, all_names, hidden?

Class Method Details

.command_nameObject



9
# File 'lib/rubyn_code/cli/commands/chisel_audit.rb', line 9

def self.command_name = '/chisel-audit'

.descriptionObject



10
# File 'lib/rubyn_code/cli/commands/chisel_audit.rb', line 10

def self.description = 'Find over-engineering across the repo (/chisel-audit [path])'

Instance Method Details

#execute(args, ctx) ⇒ Object



12
13
14
15
# File 'lib/rubyn_code/cli/commands/chisel_audit.rb', line 12

def execute(args, ctx)
  path = args.first
  ctx.send_message(RubynCode::Chisel::Inspection.prompt(scope: :repo, target: path))
end