Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Examples/BushelCloud/.gitrepo
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[subrepo]
remote = git@github.com:brightdigit/BushelCloud.git
branch = mistkit
commit = 5bb449083cf63d4752dea48fe5579efc16ba7374
parent = 38f0d77f93f1df4384271be2ff865cae2e2f813d
commit = dc480a1c6d6a3553a1edd4a65f938dfe286a2f1d
parent = b717ba403e2ecb38e0e385c7ded0594ee5c12cc7
method = merge
cmdver = 0.4.9
2 changes: 1 addition & 1 deletion Examples/BushelCloud/Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 2 additions & 14 deletions Examples/BushelCloud/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ let package = Package(
.visionOS(.v2)
],
products: [
.library(name: "ConfigKeyKit", targets: ["ConfigKeyKit"]),
.library(name: "BushelCloudKit", targets: ["BushelCloudKit"]),
.executable(name: "bushel-cloud", targets: ["BushelCloudCLI"])
],
dependencies: [
.package(name: "MistKit", path: "../.."),
.package(name: "ConfigKeyKit", path: "../../Packages/ConfigKeyKit"),
.package(url: "https://github.com/brightdigit/BushelKit.git", from: "3.0.0-alpha.2"),
.package(url: "https://github.com/brightdigit/IPSWDownloads.git", from: "1.0.0"),
.package(url: "https://github.com/scinfu/SwiftSoup.git", from: "2.6.0"),
Expand All @@ -103,15 +103,10 @@ let package = Package(
)
],
targets: [
.target(
name: "ConfigKeyKit",
dependencies: [],
swiftSettings: swiftSettings
),
.target(
name: "BushelCloudKit",
dependencies: [
.target(name: "ConfigKeyKit"),
.product(name: "ConfigKeyKit", package: "ConfigKeyKit"),
.product(name: "MistKit", package: "MistKit"),
.product(name: "BushelLogging", package: "BushelKit"),
.product(name: "BushelFoundation", package: "BushelKit"),
Expand All @@ -130,13 +125,6 @@ let package = Package(
],
swiftSettings: swiftSettings
),
.testTarget(
name: "ConfigKeyKitTests",
dependencies: [
.target(name: "ConfigKeyKit")
],
swiftSettings: swiftSettings
),
.testTarget(
name: "BushelCloudKitTests",
dependencies: [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
//
// ConfigKey+BUSHEL.swift
// BushelCloud
//
// Created by Leo Dion.
// Copyright © 2026 BrightDigit.
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use,
// copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following
// conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.
//

public import ConfigKeyKit

// MARK: - BushelCloud-Specific Config Key Helpers

extension ConfigKey {
/// Convenience initializer for keys with `BUSHEL_` environment-variable prefix.
/// - Parameters:
/// - base: Base key string (e.g., "sync.dry_run")
/// - defaultVal: Required default value
public init(bushelPrefixed base: String, default defaultVal: Value) {
self.init(base, envPrefix: "BUSHEL", default: defaultVal)
}
}

extension ConfigKey where Value == Bool {
/// Convenience initializer for boolean keys with `BUSHEL_` environment-variable prefix.
/// - Parameters:
/// - base: Base key string (e.g., "sync.verbose")
/// - defaultVal: Default value (defaults to false)
public init(bushelPrefixed base: String, default defaultVal: Bool = false) {
self.init(base, envPrefix: "BUSHEL", default: defaultVal)
}
}

extension OptionalConfigKey {
/// Convenience initializer for optional keys with `BUSHEL_` environment-variable prefix.
/// - Parameter base: Base key string (e.g., "sync.min_interval")
public init(bushelPrefixed base: String) {
self.init(base, envPrefix: "BUSHEL")
}
}
181 changes: 0 additions & 181 deletions Examples/BushelCloud/Sources/ConfigKeyKit/ConfigKey.swift

This file was deleted.

84 changes: 0 additions & 84 deletions Examples/BushelCloud/Sources/ConfigKeyKit/ConfigurationKey.swift

This file was deleted.

Loading
Loading