class Aruba::Platforms::WindowsWhich::AbsoluteOrRelativePathWhich

Find path for absolute or relative command

def self.match?(program)

def self.match?(program)
  Aruba.platform.absolute_path?(program) || Aruba.platform.relative_command?(program)
end

def call(program, _path)

def call(program, _path)
  # Expand `#path_exts`
  found = Dir[program].first
  return File.expand_path(found) if found && Aruba.platform.executable?(found)
  nil
end