Skip to content

Conversation

@danielbayley
Copy link
Contributor

@danielbayley danielbayley commented Jun 16, 2020

Closes #281.

Add `i` alias for `install` command. See mas-cli#281.
Add `ls` alias for `list` command. See mas-cli#281.
Add `remove` alias for `uninstall` command. See mas-cli#281.
Add `rm` alias for `uninstall` command. See mas-cli#281.
Add `update` alias for `brew upgrade mas`. See mas-cli#281.
@danielbayley danielbayley marked this pull request as draft June 16, 2020 15:53
@phatblat
Copy link
Member

I took a look at this and am worried about maintaining duplicate code. Unfortunately with Swift's structs` there's no inheritance, so need to look at other ways to reuse code.

I started a change to Commandant for alias support Carthage/Commandant#155

@danielbayley danielbayley marked this pull request as ready for review October 16, 2020 21:59
@danielbayley
Copy link
Contributor Author

I took a look at this and am worried about maintaining duplicate code.

@phatblat Yeah, this workaround is obviously very far from ideal.

Unfortunately with Swift's structs` there's no inheritance, so need to look at other ways to reuse code.

Not a fan of inheritance anyway… But as @rgoldberg pointed out, there is now Swift Argument Parser available, so fully migrating to that would likely be best…

@rgoldberg
Copy link
Member

rgoldberg commented Oct 14, 2024

mas has migrated from Commandant to Apple's Swift Argument Parser. The latter supports aliases. Will make a new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Subcommand aliases

3 participants