Class: Ocak::Commands::Design
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Ocak::Commands::Design
- Defined in:
- lib/ocak/commands/design.rb
Instance Method Summary collapse
Instance Method Details
#call(description: nil) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/ocak/commands/design.rb', line 10 def call(description: nil, **) skill_path = File.join(Dir.pwd, '.claude', 'skills', 'design', 'SKILL.md') unless File.exist?(skill_path) warn 'No design skill found. Run `ocak init` first.' exit 1 end if description exec('claude', '--skill', skill_path, '--', description) else exec('claude', '--skill', skill_path) end end |