Class: RubynCode::CLI::Commands::ListSkills
- Inherits:
-
Base
- Object
- Base
- RubynCode::CLI::Commands::ListSkills
show all
- Defined in:
- lib/rubyn_code/cli/commands/list_skills.rb
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/list_skills.rb', line 7
def self.command_name = '/skills'
|
.description ⇒ Object
8
|
# File 'lib/rubyn_code/cli/commands/list_skills.rb', line 8
def self.description = 'List installed skills or browse the registry'
|
Instance Method Details
#execute(args, ctx) ⇒ Object
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/rubyn_code/cli/commands/list_skills.rb', line 10
def execute(args, ctx)
if args.include?('--available')
list_available(ctx)
else
list_installed(ctx)
end
rescue Skills::RegistryError => e
ctx.renderer.error("Registry error: #{e.message}")
rescue StandardError => e
ctx.renderer.error("Skills error: #{e.message}")
end
|