Class: RubynCode::CLI::Commands::RemoveSkills
- Inherits:
-
Base
- Object
- Base
- RubynCode::CLI::Commands::RemoveSkills
show all
- Defined in:
- lib/rubyn_code/cli/commands/remove_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/remove_skills.rb', line 7
def self.command_name = '/remove-skills'
|
.description ⇒ Object
8
|
# File 'lib/rubyn_code/cli/commands/remove_skills.rb', line 8
def self.description = 'Remove installed skill packs'
|
Instance Method Details
#execute(args, ctx) ⇒ Object
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/rubyn_code/cli/commands/remove_skills.rb', line 10
def execute(args, ctx)
if args.empty?
ctx.renderer.warning('Usage: /remove-skills <pack-name> [pack-name ...]')
return
end
pack_manager = RubynCode::Skills::PackManager.new
args.each { |name| remove_pack(name, pack_manager, ctx) }
end
|