{"record":{"id":"eaf2fadccd39d644","repo":"ruby/rubygems","slug":"29","errorCode":"29","errorMessage":"Command `#{command}` not found","messagePattern":"Command `#(.+?)` not found","errorType":"exception","errorClass":"Bundler::Plugin::UndefinedCommandError","httpStatus":null,"severity":"error","filePath":"lib/bundler/plugin.rb","lineNumber":197,"sourceCode":"    # The cache directory for plugin stuffs\n    def cache\n      @cache ||= root.join(\"cache\")\n    end\n\n    # To be called via the API to register to handle a command\n    def add_command(command, cls)\n      @commands[command] = cls\n    end\n\n    # Checks if any plugin handles the command\n    def command?(command)\n      !index.command_plugin(command).nil?\n    end\n\n    # To be called from Cli class to pass the command and argument to\n    # appropriate plugin class\n    def exec_command(command, args)\n      raise UndefinedCommandError, \"Command `#{command}` not found\" unless command? command\n\n      load_plugin index.command_plugin(command) unless @commands.key? command\n\n      @commands[command].new.exec(command, args)\n    end\n\n    # To be called via the API to register to handle a source plugin\n    def add_source(source, cls)\n      @sources[source] = cls\n    end\n\n    # Checks if any plugin declares the source\n    def source?(name)\n      !!source_plugin(name)\n    end\n\n    # Returns the plugin that handles the source +name+ if any\n    def source_plugin(name)","sourceCodeStart":179,"sourceCodeEnd":215,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/plugin.rb#L179-L215","documentation":"Error \"Command `#{command}` not found\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/plugin.rb:197 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":"86cbb817a38ce8477b181c17467a703ded3f2be8","analyzedAt":"2026-08-23T06:27:48.159Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}