function updatedObjects = update(targetObject, options)
% UPDATE Internal implementation of TARGET.UPDATE.

%   Copyright 2022 The MathWorks, Inc.

    arguments (Input)
        targetObject
        options.SuppressOutput = true
    end

    tr = targetframework.internal.repository.createTargetRepository(true);
    updateResults = tr.update(targetObject);

    updatedObjects = [updateResults.Object];

    if isempty(updateResults)
        updatedObjects = target.internal.Object.empty();
    end

    if ~options.SuppressOutput
        target.internal.printResults(updateResults);
    end
end
