-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add 'view' command #127
Add 'view' command #127
Conversation
Codecov Report
@@ Coverage Diff @@
## master #127 +/- ##
============================================
- Coverage 46.54% 46.19% -0.36%
Complexity 703 703
============================================
Files 119 121 +2
Lines 2892 2914 +22
Branches 391 394 +3
============================================
Hits 1346 1346
- Misses 1374 1396 +22
Partials 172 172
Continue to review full report at Codecov.
|
.findRecipeWithName(this.item.getName()) | ||
.orElseThrow(() -> new CommandException(String.format(MESSAGE_RECIPE_NOT_FOUND, | ||
this.item.getName()))); |
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.
shouldn't this also check if the item was a number? wouldn't you want to let the user do view #3
for example
if (!args.getCommand().equals(commandName)) { | ||
return Result.error("invalid command '%s' (expected '%s')", args.getCommand(), commandName); | ||
} |
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 changed all of these to assertions a while ago, this should probably be changed too
👍 |
Closes #112