Enumerationswift-package-manager 6.0.3Basics
Sandbox
Sandbox.swift:40enum Sandbox
enum Sandbox
import Basics
static func apply(command: [String], fileSystem: FileSystem, strictness: Strictness = .default, writableDirectories: [AbsolutePath] = [], readOnlyDirectories: [AbsolutePath] = [], allowNetworkConnections: [SandboxNetworkPermission] = []) throws -> [String]
Applies a sandbox invocation to the given command line (if the platform supports it), and returns the modified command line. On platforms that don’t support sandboxing, the command line is returned unmodified.
enum Strictness
Basic strictness level of a sandbox applied to a command line.