-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…t-command [#495] Package all Swift Commands
- Loading branch information
Showing
34 changed files
with
322 additions
and
152 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
name: Publish docs to Wiki | ||
|
||
on: | ||
push: | ||
paths: | ||
- .github/wiki/** | ||
branches: | ||
- main | ||
- master | ||
|
||
jobs: | ||
publish_docs_to_wiki: | ||
name: Publish Wiki | ||
uses: nimblehq/github-actions-workflows/.github/workflows/[email protected] | ||
with: | ||
USER_NAME: team-nimblehq | ||
USER_EMAIL: [email protected] | ||
secrets: | ||
USER_TOKEN: ${{ secrets.NIMBLE_DEV_TOKEN }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,3 +84,4 @@ dependencies/ | |
|
||
# Environment | ||
.env | ||
Scripts/Swift/iOSTemplateMaker/.* |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "swift-argument-parser", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-argument-parser.git", | ||
"state" : { | ||
"revision" : "8f4d2753f0e4778c76d5f05ad16c74f707390531", | ||
"version" : "1.2.3" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
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,28 @@ | ||
// swift-tools-version: 5.7.1 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "iOSTemplateMaker", | ||
products: [ | ||
.executable( | ||
name: "iOSTemplateMaker", | ||
targets: ["iOSTemplateMaker"] | ||
), | ||
], | ||
dependencies: [ | ||
.package( | ||
url: "https://github.com/apple/swift-argument-parser.git", | ||
from: "1.0.0" | ||
), | ||
], | ||
targets: [ | ||
.executableTarget( | ||
name: "iOSTemplateMaker", | ||
dependencies: [ | ||
.product(name: "ArgumentParser", package: "swift-argument-parser") | ||
] | ||
), | ||
] | ||
) |
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
18 changes: 18 additions & 0 deletions
18
Scripts/Swift/iOSTemplateMaker/Sources/iOSTemplateMaker/Extensions/Optional+Utils.swift
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,18 @@ | ||
import Foundation | ||
|
||
extension Optional { | ||
|
||
func unwrappedOr(_ defaultValue: Wrapped) -> Wrapped { | ||
switch self { | ||
case .none: | ||
return defaultValue | ||
case let .some(value): | ||
return value | ||
} | ||
} | ||
} | ||
|
||
extension Optional where Wrapped == String { | ||
|
||
var string: String { unwrappedOr("") } | ||
} |
3 changes: 3 additions & 0 deletions
3
Scripts/Swift/Extensions/String+Utils.swift → ...mplateMaker/Extensions/String+Utils.swift
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
15 changes: 15 additions & 0 deletions
15
Scripts/Swift/iOSTemplateMaker/Sources/iOSTemplateMaker/Helpers/EnvironmentValue.swift
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,15 @@ | ||
// | ||
// EnvironmentValue.swift | ||
// | ||
// | ||
// Created by Bliss on 30/8/23. | ||
// | ||
|
||
import Foundation | ||
|
||
enum EnvironmentValue { | ||
|
||
static func value(for key: String) -> String? { | ||
ProcessInfo.processInfo.environment[key] | ||
} | ||
} |
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
Scripts/Swift/iOSTemplateMaker/Sources/iOSTemplateMaker/Models/EnvironmentKey.swift
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,23 @@ | ||
// | ||
// EnvironmentKey.swift | ||
// | ||
// | ||
// Created by Bliss on 30/8/23. | ||
// | ||
|
||
enum EnvironmentKey: String { | ||
|
||
case matchRepo = "MATCH_REPO" | ||
case stagingFirebaseAppId = "STAGING_FIREBASE_APP_ID" | ||
case teamId = "TEAM_ID" | ||
case apiKey = "API_KEY_ID" | ||
case issuerId = "ISSUER_ID" | ||
case isCI = "CI" | ||
} | ||
|
||
extension EnvironmentValue { | ||
|
||
static func value(for key: EnvironmentKey) -> String? { | ||
Self.value(for: key.rawValue) | ||
} | ||
} |
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
File renamed without changes.
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
Oops, something went wrong.