This repository has been archived by the owner on Aug 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
115 additions
and
37 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
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,50 @@ | ||
import Foundation | ||
|
||
public enum ActionCategory { | ||
case testing | ||
case building | ||
case screenshots | ||
case project | ||
case codeSigning | ||
case documentation | ||
case beta | ||
case push | ||
case production | ||
case sourceControl | ||
case notifications | ||
case misc | ||
case deprecated | ||
} | ||
|
||
public struct Option { | ||
let key: String | ||
let envName: String? | ||
let description: String? | ||
|
||
init(key: String, envName: String? = nil, description: String? = nil) { | ||
self.key = key | ||
self.envName = envName | ||
self.description = description | ||
} | ||
} | ||
|
||
public protocol ActionError: Error { | ||
|
||
} | ||
|
||
public protocol Action { | ||
var id: String { get } | ||
var description: String { get } | ||
var codeExamples: [String] { get } | ||
var authors: [String] { get } | ||
var options: [Option] { get } | ||
} | ||
|
||
public extension Action { | ||
var id: String { | ||
return String(describing: Self.self) | ||
} | ||
var description: String { return "" } | ||
var codeExamples: [String] { return [] } | ||
var authors: [String] { return [] } | ||
} |
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,11 +1,15 @@ | ||
import Foundation | ||
|
||
public enum FastlaneError: ActionError { | ||
|
||
} | ||
|
||
enum Fastlane { | ||
static func lane(_ name: String) throws { | ||
try Shell.run("fastlane", args: [name]) | ||
try ShellCommand.run("fastlane", args: [name]) | ||
} | ||
|
||
static func lane(_ name: String, platform: String) throws { | ||
try Shell.run("fastlane", args: [platform, name]) | ||
try ShellCommand.run("fastlane", args: [platform, 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import Foundation | ||
|
||
public enum XcodeError { | ||
public enum XcodeError: ActionError { | ||
|
||
} | ||
|
||
|
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