Skip to content

Commit

Permalink
make BetaGroup extend to Sync Protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
DechengMa committed May 20, 2020
1 parent 99c213e commit 8f8b39b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Sources/AppStoreConnectCLI/Model/BetaGroup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@ extension BetaGroup: Equatable, Hashable {
}
}

extension BetaGroup: SyncResultRenderable {
var syncResultText: String {
self.groupName ?? "group-name"
}
}

extension BetaGroup: FileNameGettable {
var fileName: String {
"\(app.name ?? "")_\(groupName ?? "group-name")"
}
}

extension AppStoreConnectService {
private enum BetaGroupError: LocalizedError {
case betaGroupNotFound(groupNames: [String])
Expand Down

0 comments on commit 8f8b39b

Please sign in to comment.