eddiezane/lunchy · error · ArgumentError

uninstall [name]

Error message

uninstall [name]

What it means

Error "uninstall [name]" thrown in eddiezane/lunchy.

Source

Thrown at lib/lunchy.rb:72

  def install(params)
    raise ArgumentError, "install [-s] [file]" if params.empty?
    filename = params[0]
    %w(~/Library/LaunchAgents /Library/LaunchAgents).each do |dir|
      if File.exist?(File.expand_path(dir))
        if symlink
          FileUtils.ln_s filename, File.join(File.expand_path(dir), File.basename(filename)), force: true
          return puts "#{filename} installed to #{dir}"
        else
          FileUtils.cp filename, File.join(File.expand_path(dir), File.basename(filename))
          return puts "#{filename} installed to #{dir}"
        end
      end
    end
  end

  def uninstall(params)
    raise ArgumentError, "uninstall [name]" if params.empty?

    stop(params.dup)

    with_match params[0] do |name, path|
      if File.exist?(path)
        FileUtils.rm(path)
        puts "uninstalled #{name}"
      end
    end
  end
  alias_method :rm, :uninstall

  def show(params)
    raise ArgumentError, "show [name]" if params.empty?

    with_match params[0] do |_, path|
      puts IO.read(path)
    end

View on GitHub (pinned to dfe1b06dae)

When it happens

Trigger: Thrown at lib/lunchy.rb:72 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of eddiezane/lunchy@dfe1b06dae (2026-08-23). Data as JSON: /api/errors/b10ae9a365c4eb43. Report an issue: GitHub.