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 for commands #16

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

ThePaSch
Copy link

This implements the ability to define aliases for any command. Command objects now take an additional member "aliases", an array of strings, which can be used in place of the command's full name and will function just the same.

Cleanup and resubmission of #14.

updated interpreter to check for aliases
added aliases member to command class; added aliases to command help
esLint fixes for Command.js
esLint fixes for App.js
adjusted length of 234 to meet ESLint max-len criteria
@coveralls
Copy link

coveralls commented May 29, 2017

Coverage Status

Changes Unknown when pulling c5364ad on ThePaSch:master into ** on MeLlamoPablo:master**.

@MeLlamoPablo
Copy link
Owner

MeLlamoPablo commented May 30, 2017

Thanks for the PR!

The only thing left is adding tests to cover the new feature and maybe try to get coverage back to 100%. If you don't want to do that; it's ok. I'll do it whenever I can, and merge the PR.

Otherwise, let me know if you're going to do it so we don't waste any effort. Here you can see the uncovered lines.

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.

None yet

3 participants