-
Notifications
You must be signed in to change notification settings - Fork 269
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? #281
Comments
Good idea! These would be easy to add. |
@phatblat I imagine so… although I haven't dug into Swift yet… If you point out where in the codebase, I can do a PR… |
This project uses Commandant and all the commands live in the Commands folder. I don't see an option in Commandant for creating a command alias. However, you could:
|
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.
@phatblat Ok, quickly done that for |
Add `update` alias for `brew upgrade mas`. See mas-cli#281.
the |
just copy over the command looks not good as coding style - i would create a wrapper command for alias and wrap them in this command - so no duplicate code is created see comment here: Carthage/Commandant#155 (comment) if the alias command not goes into commandant - we can add it anyway into the Note: duplicate code is bad, because if someone change the code most time they forget to edit the "copied" code part) |
Is your feature request related to a problem? Please describe.
mas
could use a few aliases, to bring it more in line withbrew
andcask
…Describe the solution you'd like
These could include:
mas -v
/--version
->mas version
mas -h
/--help
->mas help
mas ls
->mas list
mas i
->mas install
mas rm
->mas uninstall
mas update
->brew upgrade mas
The text was updated successfully, but these errors were encountered: