Class: RubynCode::CLI::Commands::Review

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

aliases, all_names, hidden?

Class Method Details

.command_nameObject



7
# File 'lib/rubyn_code/cli/commands/review.rb', line 7

def self.command_name = '/review'

.descriptionObject



8
# File 'lib/rubyn_code/cli/commands/review.rb', line 8

def self.description = 'Review current branch against best practices'

Instance Method Details

#execute(args, ctx) ⇒ Object



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

def execute(args, ctx)
  base = args.fetch(0, 'main')
  focus = args.fetch(1, 'all')

  ctx.send_message(build_prompt(base, focus))
end