mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 11:33:13 +00:00
Fix typos in comments
Resolves #538 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
parent
7132e7eed9
commit
47f4b5c0da
5 changed files with 6 additions and 6 deletions
|
@ -69,7 +69,7 @@ public struct LuckyCommand: CommandProtocol {
|
||||||
///
|
///
|
||||||
/// - Parameters:
|
/// - Parameters:
|
||||||
/// - appId: App identifier
|
/// - appId: App identifier
|
||||||
/// - options: command opetions.
|
/// - options: command options.
|
||||||
/// - Returns: Result of the operation.
|
/// - Returns: Result of the operation.
|
||||||
fileprivate func install(_ appId: UInt64, options: Options) -> Result<Void, MASError> {
|
fileprivate func install(_ appId: UInt64, options: Options) -> Result<Void, MASError> {
|
||||||
// Try to download applications with given identifiers and collect results
|
// Try to download applications with given identifiers and collect results
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
// Copyright © 2020 mas-cli. All rights reserved.
|
// Copyright © 2020 mas-cli. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
/// Somewhat analygous to CKSoftwareMap
|
/// Somewhat analogous to CKSoftwareMap
|
||||||
protocol SoftwareMap {
|
protocol SoftwareMap {
|
||||||
func allSoftwareProducts() -> [SoftwareProduct]
|
func allSoftwareProducts() -> [SoftwareProduct]
|
||||||
func product(for bundleIdentifier: String) -> SoftwareProduct?
|
func product(for bundleIdentifier: String) -> SoftwareProduct?
|
||||||
|
|
|
@ -15,8 +15,8 @@ enum AppListFormatter {
|
||||||
|
|
||||||
/// Formats text output with list results.
|
/// Formats text output with list results.
|
||||||
///
|
///
|
||||||
/// - Parameter products: List of sortware products app data.
|
/// - Parameter products: List of software products app data.
|
||||||
/// - Returns: Multiliune text outoutp.
|
/// - Returns: Multiline text output.
|
||||||
static func format(products: [SoftwareProduct]) -> String {
|
static func format(products: [SoftwareProduct]) -> String {
|
||||||
// find longest appName for formatting, default 50
|
// find longest appName for formatting, default 50
|
||||||
let maxLength = products.map(\.appNameOrBundleIdentifier.count).max() ?? nameColumnMinWidth
|
let maxLength = products.map(\.appNameOrBundleIdentifier.count).max() ?? nameColumnMinWidth
|
||||||
|
|
|
@ -13,7 +13,7 @@ enum SearchResultFormatter {
|
||||||
/// Formats text output with search results.
|
/// Formats text output with search results.
|
||||||
///
|
///
|
||||||
/// - Parameter results: Search results with app data
|
/// - Parameter results: Search results with app data
|
||||||
/// - Returns: Multiliune text outoutp.
|
/// - Returns: Multiline text output.
|
||||||
static func format(results: [SearchResult], includePrice: Bool = false) -> String {
|
static func format(results: [SearchResult], includePrice: Bool = false) -> String {
|
||||||
// find longest appName for formatting, default 50
|
// find longest appName for formatting, default 50
|
||||||
let maxLength = results.map(\.trackName.count).max() ?? 50
|
let maxLength = results.map(\.trackName.count).max() ?? 50
|
||||||
|
|
|
@ -27,7 +27,7 @@ class AppLibraryMock: AppLibrary {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Members not part of the AppLibrary protocol that are only for test state managment.
|
/// Members not part of the AppLibrary protocol that are only for test state management.
|
||||||
extension AppLibraryMock {
|
extension AppLibraryMock {
|
||||||
/// Clears out the list of installed apps.
|
/// Clears out the list of installed apps.
|
||||||
func reset() {
|
func reset() {
|
||||||
|
|
Loading…
Reference in a new issue