Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Swift Argument Parser instead of Commandant. #554

Merged
merged 7 commits into from
Oct 14, 2024

Conversation

rgoldberg
Copy link
Contributor

@rgoldberg rgoldberg commented Oct 6, 2024

Use Swift Argument Parser instead of Commandant.

If reviewing on GitHub, look at individual commits instead of the full change from the branch. Many files were moved. Each individual commit moves files, instead of deleting old files & creating new files. If you look at the changes across the whole branch in GitHub, however, many old files are shown as deleted with a new file created elsewhere instead of the move being preserved, so you can't easily see the actual text changes in the files on GitHub.

Resolve #542

@rgoldberg rgoldberg added the 🧽 chore Administrative task: documentation, build, test, release, git, etc. label Oct 6, 2024
@rgoldberg rgoldberg added this to the 1.8.7 milestone Oct 6, 2024
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 <[email protected]>
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 <[email protected]>
Throw when failure. Normal Void return when success.

Signed-off-by: Ross Goldberg <[email protected]>
Resolve mas-cli#542

Signed-off-by: Ross Goldberg <[email protected]>
@rgoldberg rgoldberg force-pushed the 542-swift-argument-parser branch from 133fcf3 to 0efd73a Compare October 14, 2024 08:04
@rgoldberg rgoldberg merged commit 43505db into mas-cli:main Oct 14, 2024
3 checks passed
@rgoldberg rgoldberg deleted the 542-swift-argument-parser branch October 14, 2024 08:06
@rgoldberg rgoldberg self-assigned this Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧽 chore Administrative task: documentation, build, test, release, git, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate from Commandant to Swift Argument Parser
1 participant