mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-05-23 11:37:07 -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
|
||||
|
||||
extension UNNotificationAction {
|
||||
struct Identifier {
|
||||
enum Identifier {
|
||||
/// Show Identifier
|
||||
static let show: String = "Show"
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import UserNotifications
|
||||
|
||||
extension UNNotificationCategory {
|
||||
struct Identifier {
|
||||
enum Identifier {
|
||||
/// Success Identifier
|
||||
static let success: String = "Success"
|
||||
/// Failure Identifier
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
|
||||
/// Helper struct to create directories.
|
||||
struct DirectoryCreator {
|
||||
enum DirectoryCreator {
|
||||
/// Create a directory at the provided URL.
|
||||
///
|
||||
/// - Parameters:
|
||||
|
|
|
@ -9,7 +9,7 @@ import Foundation
|
|||
import SecureXPC
|
||||
|
||||
/// Helper struct to remove directories
|
||||
struct DirectoryRemover {
|
||||
enum DirectoryRemover {
|
||||
/// Remove directory at the provided URL.
|
||||
///
|
||||
/// - Parameters:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
|
||||
/// Helper struct to copy files.
|
||||
struct FileCopier {
|
||||
enum FileCopier {
|
||||
/// Copy a file from one location to another.
|
||||
///
|
||||
/// - Parameters:
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import Foundation
|
||||
|
||||
/// Helper struct to move files.
|
||||
struct FileMover {
|
||||
enum FileMover {
|
||||
/// Move a file from one location to another.
|
||||
///
|
||||
/// - Parameters:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue