mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-05-23 19:47:08 -04:00
SwiftFormat enumNamespaces
This commit is contained in:
parent
aac0b11742
commit
d54898baa4
21 changed files with 21 additions and 21 deletions
|
@ -8,7 +8,7 @@
|
||||||
import UserNotifications
|
import UserNotifications
|
||||||
|
|
||||||
extension UNNotificationAction {
|
extension UNNotificationAction {
|
||||||
struct Identifier {
|
enum Identifier {
|
||||||
/// Show Identifier
|
/// Show Identifier
|
||||||
static let show: String = "Show"
|
static let show: String = "Show"
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import UserNotifications
|
import UserNotifications
|
||||||
|
|
||||||
extension UNNotificationCategory {
|
extension UNNotificationCategory {
|
||||||
struct Identifier {
|
enum Identifier {
|
||||||
/// Success Identifier
|
/// Success Identifier
|
||||||
static let success: String = "Success"
|
static let success: String = "Success"
|
||||||
/// Failure Identifier
|
/// Failure Identifier
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
/// Helper struct to codesign a file (ie. Disk Image).
|
/// Helper struct to codesign a file (ie. Disk Image).
|
||||||
struct Codesigner {
|
enum Codesigner {
|
||||||
/// Sign a file with the provided signing identity.
|
/// Sign a file with the provided signing identity.
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
/// Helper struct to create directories.
|
/// Helper struct to create directories.
|
||||||
struct DirectoryCreator {
|
enum DirectoryCreator {
|
||||||
/// Create a directory at the provided URL.
|
/// Create a directory at the provided URL.
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
|
|
@ -9,7 +9,7 @@ import Foundation
|
||||||
import SecureXPC
|
import SecureXPC
|
||||||
|
|
||||||
/// Helper struct to remove directories
|
/// Helper struct to remove directories
|
||||||
struct DirectoryRemover {
|
enum DirectoryRemover {
|
||||||
/// Remove directory at the provided URL.
|
/// Remove directory at the provided URL.
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
/// Helper struct to create disk images.
|
/// Helper struct to create disk images.
|
||||||
struct DiskImageCreator {
|
enum DiskImageCreator {
|
||||||
/// Create an empty Disk Image of fixed size.
|
/// Create an empty Disk Image of fixed size.
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
/// Helper struct to mount Disk Images.
|
/// Helper struct to mount Disk Images.
|
||||||
struct DiskImageMounter {
|
enum DiskImageMounter {
|
||||||
/// Mount a Disk Image at the provided mount point.
|
/// Mount a Disk Image at the provided mount point.
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
/// Helper struct to unmount Disk Images.
|
/// Helper struct to unmount Disk Images.
|
||||||
struct DiskImageUnmounter {
|
enum DiskImageUnmounter {
|
||||||
/// Unmount a Disk Image at the provided mount point.
|
/// Unmount a Disk Image at the provided mount point.
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
|
|
@ -9,7 +9,7 @@ import Foundation
|
||||||
import SecureXPC
|
import SecureXPC
|
||||||
|
|
||||||
/// Helper struct to update file / directory attributes
|
/// Helper struct to update file / directory attributes
|
||||||
struct FileAttributesUpdater {
|
enum FileAttributesUpdater {
|
||||||
/// Update file / directory attributes at the provided URL.
|
/// Update file / directory attributes at the provided URL.
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
/// Helper struct to copy files.
|
/// Helper struct to copy files.
|
||||||
struct FileCopier {
|
enum FileCopier {
|
||||||
/// Copy a file from one location to another.
|
/// Copy a file from one location to another.
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
/// Helper struct to move files.
|
/// Helper struct to move files.
|
||||||
struct FileMover {
|
enum FileMover {
|
||||||
/// Move a file from one location to another.
|
/// Move a file from one location to another.
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
/// Helper struct to convert Disk Images to ISOs.
|
/// Helper struct to convert Disk Images to ISOs.
|
||||||
struct ISOConverter {
|
enum ISOConverter {
|
||||||
/// Convert a Disk Image to an ISO.
|
/// Convert a Disk Image to an ISO.
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
|
|
@ -9,7 +9,7 @@ import Foundation
|
||||||
import SecureXPC
|
import SecureXPC
|
||||||
|
|
||||||
/// Helper struct to execute the `createinstallmedia` command found in macOS Install app bundles.
|
/// 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.
|
/// Create the macOS Install Media at the specified mount point.
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
|
|
@ -9,7 +9,7 @@ import Foundation
|
||||||
import SecureXPC
|
import SecureXPC
|
||||||
|
|
||||||
/// Helper Struct used to create macOS Installers.
|
/// Helper Struct used to create macOS Installers.
|
||||||
struct InstallerCreator {
|
enum InstallerCreator {
|
||||||
/// Creates a recently downloaded macOS Installer.
|
/// Creates a recently downloaded macOS Installer.
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
/// Helper struct to create macOS Installer Packages.
|
/// Helper struct to create macOS Installer Packages.
|
||||||
struct PackageCreator {
|
enum PackageCreator {
|
||||||
/// Create a macOS Installer Package based off the passed in `Installer` struct.
|
/// Create a macOS Installer Package based off the passed in `Installer` struct.
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
/// Helper struct to perform lookups on the Privilged Helper Tool executable.
|
/// 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.
|
/// 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)")
|
static let availableURL: URL = URL(fileURLWithPath: "\(Bundle.main.bundlePath)/Contents/Library/LaunchServices/\(String.helperIdentifier)")
|
||||||
/// The URL of the Privileged Helper Tool within /Library/PrivilegedHelperTools.
|
/// The URL of the Privileged Helper Tool within /Library/PrivilegedHelperTools.
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import SecureXPC
|
import SecureXPC
|
||||||
|
|
||||||
/// Helper struct to kill the child process of the Privileted Helper Tool.
|
/// 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.
|
/// Attempts to kill the child process of the Privileged Helper Tool.
|
||||||
///
|
///
|
||||||
/// - Throws: A `MistError` if the process fails to be killed.
|
/// - Throws: A `MistError` if the process fails to be killed.
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
/// Helper struct to update a Property List key-pair value.
|
/// Helper struct to update a Property List key-pair value.
|
||||||
struct PropertyListUpdater {
|
enum PropertyListUpdater {
|
||||||
/// Update a key-pair value in a Property List.
|
/// Update a key-pair value in a Property List.
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
|
|
@ -9,7 +9,7 @@ import CryptoKit
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
/// Helper struct used to validate Firmware and Installer checksums.
|
/// Helper struct used to validate Firmware and Installer checksums.
|
||||||
struct Validator {
|
enum Validator {
|
||||||
/// Validates a Firmware's checksum.
|
/// Validates a Firmware's checksum.
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
/// Hardware Struct used to retrieve Hardware information.
|
/// Hardware Struct used to retrieve Hardware information.
|
||||||
struct Hardware {
|
enum Hardware {
|
||||||
/// Hardware Architecture (Apple Silicon or Intel).
|
/// Hardware Architecture (Apple Silicon or Intel).
|
||||||
static var architecture: Architecture? {
|
static var architecture: Architecture? {
|
||||||
#if arch(arm64)
|
#if arch(arm64)
|
||||||
|
|
|
@ -9,7 +9,7 @@ import Foundation
|
||||||
import SecureXPC
|
import SecureXPC
|
||||||
|
|
||||||
/// Helper Tool struct to run a command sent from the main application.
|
/// 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.
|
/// Run the requested command and return the status and output.
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue