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

Aliases #283

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Aliases #283

wants to merge 6 commits into from

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…

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