writeToPackageDirectory(reason:)

    Create a permission to modify files in the package’s directory.

    Target.swift:1474
    SwiftPM
    5.6+
    case writeToPackageDirectory(reason: String)

    Parameters

    reason

    A reason why the permission is needed. This is shown to the user when permission is sought.

    The command plug-in requires permission to modify the files under the package directory. The reason string is shown to the user at the time of request for approval, explaining why the plug-in requests access.

    See also