Class: RubynCode::CLI::Commands::Doctor
- Inherits:
-
Base
- Object
- Base
- RubynCode::CLI::Commands::Doctor
show all
- Defined in:
- lib/rubyn_code/cli/commands/doctor.rb
Constant Summary
collapse
- CHECKS =
%i[
check_ruby
check_bundler
check_database
check_auth
check_skills
check_project
check_mcp
check_codebase_index
check_skill_catalog
].freeze
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
aliases, all_names, hidden?
Class Method Details
.command_name ⇒ Object
7
|
# File 'lib/rubyn_code/cli/commands/doctor.rb', line 7
def self.command_name = '/doctor'
|
.description ⇒ Object
8
|
# File 'lib/rubyn_code/cli/commands/doctor.rb', line 8
def self.description = 'Environment health check'
|
Instance Method Details
#execute(_args, ctx) ⇒ Object
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/rubyn_code/cli/commands/doctor.rb', line 22
def execute(_args, ctx)
ctx.renderer.info('Rubyn Code Doctor 🩺')
puts
results = CHECKS.map { |check| send(check, ctx) }
results.each { |label, ok, detail| render_check(label, ok, detail) }
puts
render_summary(results, ctx.renderer)
end
|