Enumerationswift-package-manager 6.0.3Basics
Strictness
Basic strictness level of a sandbox applied to a command line.
enum Strictness
Basic strictness level of a sandbox applied to a command line.
enum Strictness
import Basics
enum Sandbox
case `default`
Blocks network access and all file system modifications.
case manifest_pre_53
More lenient restrictions than the default, for compatibility with SwiftPM manifests using a tools version older than 5.3.
case writableTemporaryDirectory
Like default
, but also makes temporary-files directories (such as /tmp
) on the platform writable.
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.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.