SwiftFormat enumNamespaces

This commit is contained in:
Nindi Gill 2023-11-19 19:32:12 +11:00
parent aac0b11742
commit d54898baa4
No known key found for this signature in database
GPG key ID: FF9A7FD590D4F4B1
21 changed files with 21 additions and 21 deletions

View file

@ -8,7 +8,7 @@
import UserNotifications
extension UNNotificationAction {
struct Identifier {
enum Identifier {
/// Show Identifier
static let show: String = "Show"
}

View file

@ -8,7 +8,7 @@
import UserNotifications
extension UNNotificationCategory {
struct Identifier {
enum Identifier {
/// Success Identifier
static let success: String = "Success"
/// Failure Identifier

View file

@ -8,7 +8,7 @@
import Foundation
/// Helper struct to codesign a file (ie. Disk Image).
struct Codesigner {
enum Codesigner {
/// Sign a file with the provided signing identity.
///
/// - Parameters:

View file

@ -8,7 +8,7 @@
import Foundation
/// Helper struct to create directories.
struct DirectoryCreator {
enum DirectoryCreator {
/// Create a directory at the provided URL.
///
/// - Parameters:

View file

@ -9,7 +9,7 @@ import Foundation
import SecureXPC
/// Helper struct to remove directories
struct DirectoryRemover {
enum DirectoryRemover {
/// Remove directory at the provided URL.
///
/// - Parameters:

View file

@ -8,7 +8,7 @@
import Foundation
/// Helper struct to create disk images.
struct DiskImageCreator {
enum DiskImageCreator {
/// Create an empty Disk Image of fixed size.
///
/// - Parameters:

View file

@ -8,7 +8,7 @@
import Foundation
/// Helper struct to mount Disk Images.
struct DiskImageMounter {
enum DiskImageMounter {
/// Mount a Disk Image at the provided mount point.
///
/// - Parameters:

View file

@ -8,7 +8,7 @@
import Foundation
/// Helper struct to unmount Disk Images.
struct DiskImageUnmounter {
enum DiskImageUnmounter {
/// Unmount a Disk Image at the provided mount point.
///
/// - Parameters:

View file

@ -9,7 +9,7 @@ import Foundation
import SecureXPC
/// Helper struct to update file / directory attributes
struct FileAttributesUpdater {
enum FileAttributesUpdater {
/// Update file / directory attributes at the provided URL.
///
/// - Parameters:

View file

@ -8,7 +8,7 @@
import Foundation
/// Helper struct to copy files.
struct FileCopier {
enum FileCopier {
/// Copy a file from one location to another.
///
/// - Parameters:

View file

@ -8,7 +8,7 @@
import Foundation
/// Helper struct to move files.
struct FileMover {
enum FileMover {
/// Move a file from one location to another.
///
/// - Parameters:

View file

@ -8,7 +8,7 @@
import Foundation
/// Helper struct to convert Disk Images to ISOs.
struct ISOConverter {
enum ISOConverter {
/// Convert a Disk Image to an ISO.
///
/// - Parameters:

View file

@ -9,7 +9,7 @@ import Foundation
import SecureXPC
/// Helper struct to execute the `createinstallmedia` command found in macOS Install app bundles.
struct InstallMediaCreator {
enum InstallMediaCreator {
/// Create the macOS Install Media at the specified mount point.
///
/// - Parameters:

View file

@ -9,7 +9,7 @@ import Foundation
import SecureXPC
/// Helper Struct used to create macOS Installers.
struct InstallerCreator {
enum InstallerCreator {
/// Creates a recently downloaded macOS Installer.
///
/// - Parameters:

View file

@ -8,7 +8,7 @@
import Foundation
/// Helper struct to create macOS Installer Packages.
struct PackageCreator {
enum PackageCreator {
/// Create a macOS Installer Package based off the passed in `Installer` struct.
///
/// - Parameters:

View file

@ -8,7 +8,7 @@
import Foundation
/// Helper struct to perform lookups on the Privilged Helper Tool executable.
struct PrivilegedHelperTool {
enum PrivilegedHelperTool {
/// The URL of the Privileged Helper Tool within the Mist app bundle.
static let availableURL: URL = URL(fileURLWithPath: "\(Bundle.main.bundlePath)/Contents/Library/LaunchServices/\(String.helperIdentifier)")
/// The URL of the Privileged Helper Tool within /Library/PrivilegedHelperTools.

View file

@ -8,7 +8,7 @@
import SecureXPC
/// Helper struct to kill the child process of the Privileted Helper Tool.
struct ProcessKiller {
enum ProcessKiller {
/// Attempts to kill the child process of the Privileged Helper Tool.
///
/// - Throws: A `MistError` if the process fails to be killed.

View file

@ -8,7 +8,7 @@
import Foundation
/// Helper struct to update a Property List key-pair value.
struct PropertyListUpdater {
enum PropertyListUpdater {
/// Update a key-pair value in a Property List.
///
/// - Parameters:

View file

@ -9,7 +9,7 @@ import CryptoKit
import Foundation
/// Helper struct used to validate Firmware and Installer checksums.
struct Validator {
enum Validator {
/// Validates a Firmware's checksum.
///
/// - Parameters:

View file

@ -8,7 +8,7 @@
import Foundation
/// Hardware Struct used to retrieve Hardware information.
struct Hardware {
enum Hardware {
/// Hardware Architecture (Apple Silicon or Intel).
static var architecture: Architecture? {
#if arch(arm64)

View file

@ -9,7 +9,7 @@ import Foundation
import SecureXPC
/// Helper Tool struct to run a command sent from the main application.
struct HelperToolCommandRunner {
enum HelperToolCommandRunner {
/// Run the requested command and return the status and output.
///
/// - Parameters: