-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow changing of a single simulator's location (#7)
This allows you to pass a `-s` argument followed by the simulator's display name in order to set the location of a single simulator, instead of all booted simulators.
- Loading branch information
Keith Smiley
authored
Dec 28, 2017
1 parent
a52b6bf
commit a431dd9
Showing
7 changed files
with
87 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.DS_Store | ||
set-simulator-location |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
enum SimulatorFetchError: Error, CustomStringConvertible { | ||
case simctlFailed | ||
case failedToReadOutput | ||
case noBootedSimulators | ||
case noMatchingSimulators(name: String) | ||
|
||
var description: String { | ||
switch self { | ||
case .simctlFailed: | ||
return "Running `simctl list` failed" | ||
case .failedToReadOutput: | ||
return "Failed to read output from simctl" | ||
case .noBootedSimulators: | ||
return "No simulators are currently booted" | ||
case .noMatchingSimulators(let name): | ||
return "No booted simulators named '\(name)'" | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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