This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright © 2022 Alex Kovács. All rights reserved. | |
| #if os(macOS) | |
| import Foundation | |
| extension Process { | |
| /// Creates a process and launches an exectuable with arguments. | |
| /// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Dispatch | |
| @globalActor | |
| final actor MyMainActor { | |
| // Don’t allow others to create instances | |
| private init() {} | |
| // Requirements from the implicit GlobalActor conformance | |
| typealias ActorType = MyMainActor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| #styles | |
| VP_NONE='\033[00m' | |
| VP_RED='\033[01;31m' | |
| VP_GREEN='\033[01;32m' | |
| VP_YELLOW='\033[01;33m' | |
| VP_PURPLE='\033[01;35m' | |
| VP_CYAN='\033[01;36m' | |
| VP_WHITE='\033[01;37m' |