Skip to content

Improve & standardize help output #543

@rgoldberg

Description

@rgoldberg

Improve & standardize help output:

  • Improve text.
    • Terminate all text with a ..
  • Standardize various variable names to conform to standardized naming in help, documentation, etc.
  • List help in mas help output.

Apple IDs

Specify what Apple IDs are used for each subcommand:

macOS Apple ID

An Apple ID is associated with the current macOS user in System Settings/Preferences.

Swift

(UserDefaults.standard.persistentDomain(forName: "MobileMeAccounts")?["Accounts"] as? [[String: Any]])?.first?["AccountID"]

Command Line

defaults read MobileMeAccounts | plutil -extract "Accounts".0."AccountID" raw -o - -

Mac App Store Apple ID

You can sign in to an Apple ID in the Mac App Store.

Swift (macOs <= 10.12.x)

ISStoreAccount.primaryAccount.identifier

Command Line

Not sure…

Apple IDs Used by Commands

Currently, I think that the subcommands, when working, have the following interactions with the macOS & MAS Apple IDs:

  • MAS
    • account
    • signin
    • signout
  • MAS (requires app in macOS installed app list)
    • upgrade
  • MAS (requires app not in macOS installed app list)
    • install
    • lucky
    • purchase
  • macOS (requires app in macOS installed app list)
    • list
    • outdated
    • uninstall (currently used, but probably not strictly necessary)
  • Neither
    • help
    • home
    • info
    • open
    • reset
    • search
    • vendor
    • version

Metadata

Metadata

Assignees

Labels

🖨 output🧹 cleanupOptimization of (not bug fix for) an existing feature

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions