Class: HunkReviewChanges::Installer::OpenCode

Inherits:
DirectoryInstaller show all
Defined in:
lib/hunk_review_changes/installer/opencode.rb

Overview

OpenCode reads user-level skills from ~/.config/opencode/skills.

Instance Method Summary collapse

Methods inherited from DirectoryInstaller

#install!

Methods inherited from Base

#install!

Instance Method Details

#detected?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/hunk_review_changes/installer/opencode.rb', line 12

def detected?
  command_on_path?("opencode") || File.directory?(config_dir)
end

#keyObject



9
# File 'lib/hunk_review_changes/installer/opencode.rb', line 9

def key = :opencode

#labelObject



10
# File 'lib/hunk_review_changes/installer/opencode.rb', line 10

def label = "OpenCode"

#skills_rootObject



16
17
18
# File 'lib/hunk_review_changes/installer/opencode.rb', line 16

def skills_root
  File.join(config_dir, "skills")
end