-
Notifications
You must be signed in to change notification settings - Fork 5
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
made all commands non case sensitive #138
made all commands non case sensitive #138
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #138 +/- ##
============================================
- Coverage 75.46% 73.07% -2.39%
Complexity 812 812
============================================
Files 116 117 +1
Lines 2617 2708 +91
Branches 327 334 +7
============================================
+ Hits 1975 1979 +4
- Misses 558 647 +89
+ Partials 84 82 -2 ☔ View full report in Codecov by Sentry. |
also added the functionality of shorthand. Each shorthand is just the first letter of each command. It means EditRelation == er and addAttribute == aa |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
LGTM |
case FindCommand.COMMAND_WORD_SHORT: | ||
return new FindCommandParser().parse(arguments); | ||
|
||
case ListCommand.COMMAND_WORD: | ||
case ListCommand.COMMAND_WORD_SHORT: | ||
return new ListCommand(); | ||
|
||
case ExitCommand.COMMAND_WORD: | ||
case ExitCommand.COMMAND_WORD_SHORT: | ||
return new ExitCommand(); | ||
|
||
case HelpCommand.COMMAND_WORD: | ||
case HelpCommand.COMMAND_WORD_SHORT: | ||
return new HelpCommand(); | ||
|
||
case AddRelationshipCommand.COMMAND_WORD: | ||
case AddRelationshipCommand.COMMAND_WORD_SHORT: | ||
return new AddRelationshipCommandParser().parse(arguments.trim()); | ||
|
||
case DeleteRelationshipCommand.COMMAND_WORD: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I liked how you use case fall through pretty smart
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks ik i am
All commands now non case sensitive