Command structs are nested types of Mas.
Renamed structs.
Limit code visibility as much as possible.
Standardize variable names.
Standardize spacing.
Fix a few tests.
Disable a useless test.
Remove unnecessary test stdout output.
Get swift-format from Brewfile instead of from Package.swift
since swift-format depends on an old version of swift-argument-parser.
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
Move MasKitTests module to masTests.
Rename MasKit enum as Mas.
Upgrade swift-tools-version from 5.3 to 5.6.1.
swift-tools-version 5.5+ is necessary to allow test code to import executable target code,
to allow MasKit library code to be moved into the mas executable.
Upgrade to swift-tools-version to 5.6.1 instead of to 5.5 because they support all the same macOS versions.
Standardize comments.
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
Allow them to be run from any directory.
Call version from lint & test to create Package.swift with version info.
Fail when accessing unset variables.
Improve variable names.
Fix lint issues.
Improve lint & format scripts.
Don't require user input to continue linting.
Much cleaner lint output.
Reorder lint output.
Get swift-format from Brewfile instead of from Package.swift:
- Speeds up linting.
- Properly models dependency (not a code dependency).
- swift-format depends on an old version of swift-argument-parser. Will refactor to use SAP soon.
Include some improvements from 1.8.7 PR.
Other scripts need improvement, too.
Resolve#545
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>