def validate_provider(provider, names, _count, options, knifecommands)
      unless knifecommands.index { |x| x.start_with?("knife #{provider}") }
        STDERR.puts "ERROR: 'knife #{provider}' is not a currently installed plugin for knife."
        exit(-1)
      end

      return unless provider.eql?("google")

      return unless names[1].to_i != 0 && !options.split.member?("-N")

      STDERR.puts "ERROR: 'knife google' currently requires providing a name. Please use -N within the options."
      exit(-1)
    end
def validate_provider(provider, names, _count, options, knifecommands)
      unless knifecommands.index { |x| x.start_with?("knife #{provider}") }
        STDERR.puts "ERROR: 'knife #{provider}' is not a currently installed plugin for knife."
        exit(-1)
      end

      return unless provider.eql?("google")

      return unless names[1].to_i != 0 && !options.split.member?("-N")

      STDERR.puts "ERROR: 'knife google' currently requires providing a name. Please use -N within the options."
      exit(-1)
    end
check that the knife plugin is installed