mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +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:
|
||||
/// - appId: App identifier
|
||||
/// - options: command opetions.
|
||||
/// - options: command options.
|
||||
/// - Returns: Result of the operation.
|
||||
fileprivate func install(_ appId: UInt64, options: Options) -> Result<Void, MASError> {
|
||||
// Try to download applications with given identifiers and collect results
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
// Copyright © 2020 mas-cli. All rights reserved.
|
||||
//
|
||||
|
||||
/// Somewhat analygous to CKSoftwareMap
|
||||
/// Somewhat analogous to CKSoftwareMap
|
||||
protocol SoftwareMap {
|
||||
func allSoftwareProducts() -> [SoftwareProduct]
|
||||
func product(for bundleIdentifier: String) -> SoftwareProduct?
|
||||
|
|
|
@ -15,8 +15,8 @@ enum AppListFormatter {
|
|||
|
||||
/// Formats text output with list results.
|
||||
///
|
||||
/// - Parameter products: List of sortware products app data.
|
||||
/// - Returns: Multiliune text outoutp.
|
||||
/// - Parameter products: List of software products app data.
|
||||
/// - Returns: Multiline text output.
|
||||
static func format(products: [SoftwareProduct]) -> String {
|
||||
// find longest appName for formatting, default 50
|
||||
let maxLength = products.map(\.appNameOrBundleIdentifier.count).max() ?? nameColumnMinWidth
|
||||
|
|
|
@ -13,7 +13,7 @@ enum SearchResultFormatter {
|
|||
/// Formats text output with search results.
|
||||
///
|
||||
/// - Parameter results: Search results with app data
|
||||
/// - Returns: Multiliune text outoutp.
|
||||
/// - Returns: Multiline text output.
|
||||
static func format(results: [SearchResult], includePrice: Bool = false) -> String {
|
||||
// find longest appName for formatting, default 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 {
|
||||
/// Clears out the list of installed apps.
|
||||
func reset() {
|
||||
|
|
Loading…
Reference in a new issue