{"record":{"id":"215b7ecf61b79fc5","repo":"eddiezane/lunchy","slug":"show-name","errorCode":null,"errorMessage":"show [name]","messagePattern":"show \\[name\\]","errorType":"exception","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/lunchy.rb","lineNumber":86,"sourceCode":"    end\n  end\n\n  def uninstall(params)\n    raise ArgumentError, \"uninstall [name]\" if params.empty?\n\n    stop(params.dup)\n\n    with_match params[0] do |name, path|\n      if File.exist?(path)\n        FileUtils.rm(path)\n        puts \"uninstalled #{name}\"\n      end\n    end\n  end\n  alias_method :rm, :uninstall\n\n  def show(params)\n    raise ArgumentError, \"show [name]\" if params.empty?\n\n    with_match params[0] do |_, path|\n      puts IO.read(path)\n    end\n  end\n\n  def edit(params)\n    raise ArgumentError, \"edit [name]\" if params.empty?\n\n    with_match params[0] do |_, path|\n      editor = ENV['EDITOR']\n      if editor.nil?\n        raise 'EDITOR environment variable is not set'\n      else\n        execute(\"#{editor} #{path.inspect} > `tty`\")\n      end\n    end\n  end","sourceCodeStart":68,"sourceCodeEnd":104,"githubUrl":"https://github.com/eddiezane/lunchy/blob/dfe1b06dae47fb58e4d42dcf28d404ff3557a004/lib/lunchy.rb#L68-L104","documentation":"Error \"show [name]\" thrown in eddiezane/lunchy.","triggerScenarios":"Thrown at lib/lunchy.rb:86 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"dfe1b06dae47fb58e4d42dcf28d404ff3557a004","analyzedAt":"2026-08-23T14:30:56.061Z","schemaVersion":2},"datasetVersion":"2026-08-23T16:17:53.355Z"}