class ClaudeCodeSlashCommands::Installer

def install

def install
  ensure_target_directory
  if @local
    commands = fetch_commands_from_local
    if commands.empty?
      puts "❌ No command files found in local commands/ directory"
      return
    end
    commands.each do |command_file|
      install_command_from_local(command_file)
    end
  else
    commands = fetch_commands_from_github
    if commands.empty?
      puts "❌ No command files found to install"
      return
    end
    commands.each do |command|
      install_command_from_github(command)
    end
  end
  puts "✅ Installation complete!"
rescue => e
  puts "❌ Installation failed: #{e.message}"
  exit(1)
end