Skip to content

Commit 3bc1045

Browse files
authored
Merge pull request #883 from rgoldberg/882
Update `Command` abstracts, DocC & comments
2 parents 9925ed8 + a1dfd9b commit 3bc1045

26 files changed

+76
-50
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Trailing spaces may be intentional in markdown documents, so these should not
1+
# Trailing spaces may be intentional in Markdown documents, so these should not
22
# be removed.
33
**/*.md whitespace=-blank-at-eol

Sources/mas/AppStore/Downloader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ private import CommerceKit
1313
/// Verifies that each supplied app ID is valid before attempting to download.
1414
///
1515
/// - Parameters:
16-
/// - appIDs: The app IDs of the apps to be verified and downloaded.
16+
/// - appIDs: The app IDs of the apps to be verified & downloaded.
1717
/// - searcher: The `AppStoreSearcher` used to verify app IDs.
1818
/// - purchasing: Flag indicating if the apps will be purchased. Only works for free apps. Defaults to false.
1919
/// - Throws: If any download fails, immediately throws an error.

Sources/mas/Commands/Account.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
internal import ArgumentParser
1010

1111
extension MAS {
12+
/// Displays the Apple Account signed in to the Mac App Store.
1213
struct Account: AsyncParsableCommand {
1314
static let configuration = CommandConfiguration(
1415
abstract: "Display the Apple Account signed in to the Mac App Store"

Sources/mas/Commands/Home.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ internal import ArgumentParser
1010
private import Foundation
1111

1212
extension MAS {
13-
/// Opens app page on MAS Preview. Uses the iTunes Lookup API:
13+
/// Opens Mac App Store app pages in the default web browser.
14+
///
15+
/// Uses the iTunes Lookup API:
16+
///
1417
/// https://performance-partners.apple.com/search-api
1518
struct Home: AsyncParsableCommand {
1619
static let configuration = CommandConfiguration(
17-
abstract: "Open app's Mac App Store web page in the default web browser"
20+
abstract: "Open Mac App Store app pages in the default web browser"
1821
)
1922

2023
@OptionGroup

Sources/mas/Commands/Info.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
internal import ArgumentParser
1010

1111
extension MAS {
12-
/// Displays app details. Uses the iTunes Lookup API:
12+
/// Displays app information from the Mac App Store.
13+
///
14+
/// Uses the iTunes Lookup API:
15+
///
1316
/// https://performance-partners.apple.com/search-api
1417
struct Info: AsyncParsableCommand {
1518
static let configuration = CommandConfiguration(

Sources/mas/Commands/Install.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ extension MAS {
1212
/// Installs previously purchased apps from the Mac App Store.
1313
struct Install: AsyncParsableCommand {
1414
static let configuration = CommandConfiguration(
15-
abstract: "Install previously purchased app(s) from the Mac App Store"
15+
abstract: "Install previously purchased apps from the Mac App Store"
1616
)
1717

1818
@OptionGroup

Sources/mas/Commands/List.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
internal import ArgumentParser
1010

1111
extension MAS {
12-
/// Command which lists all installed apps.
12+
/// Lists all apps installed from the Mac App Store.
1313
struct List: AsyncParsableCommand {
1414
static let configuration = CommandConfiguration(
15-
abstract: "List apps installed from the Mac App Store"
15+
abstract: "List all apps installed from the Mac App Store"
1616
)
1717

1818
/// Runs the command.

Sources/mas/Commands/Lucky.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99
internal import ArgumentParser
1010

1111
extension MAS {
12-
/// Command which installs the first search result.
12+
/// Installs the first app returned from searching the Mac App Store (app must
13+
/// have been previously purchased).
1314
///
14-
/// This is handy as many MAS titles can be long with embedded keywords.
15+
/// Uses the iTunes Search API:
16+
///
17+
/// https://performance-partners.apple.com/search-api
1518
struct Lucky: AsyncParsableCommand {
1619
static let configuration = CommandConfiguration(
1720
abstract: """

Sources/mas/Commands/Open.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ internal import ArgumentParser
1212
private var masScheme: String { "macappstore" }
1313

1414
extension MAS {
15-
/// Opens app page in MAS app. Uses the iTunes Lookup API:
15+
/// Opens app page in 'App Store.app'.
16+
///
17+
/// Uses the iTunes Lookup API:
18+
///
1619
/// https://performance-partners.apple.com/search-api
1720
struct Open: AsyncParsableCommand {
1821
static let configuration = CommandConfiguration(
@@ -29,7 +32,7 @@ extension MAS {
2932

3033
func run(searcher: AppStoreSearcher) async throws {
3134
guard let appID else {
32-
// If no app ID is given, just open the MAS GUI app
35+
// If no app ID was given, just open the MAS GUI app
3336
try await openMacAppStore()
3437
return
3538
}

Sources/mas/Commands/Outdated.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
internal import ArgumentParser
1010

1111
extension MAS {
12-
/// Command which displays a list of installed apps which have available updates
13-
/// ready to be installed from the Mac App Store.
12+
/// Displays a list of installed apps which have updates available to be
13+
/// installed from the Mac App Store.
1414
struct Outdated: AsyncParsableCommand {
1515
static let configuration = CommandConfiguration(
1616
abstract: "List pending app updates from the Mac App Store"

0 commit comments

Comments
 (0)