-
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 Command to List Modules by Prefix #59
Add Command to List Modules by Prefix #59
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #59 +/- ##
============================================
- Coverage 61.09% 59.97% -1.12%
Complexity 434 434
============================================
Files 89 91 +2
Lines 1776 1809 +33
Branches 170 175 +5
============================================
Hits 1085 1085
- Misses 653 686 +33
Partials 38 38 ☔ View full report in Codecov by Sentry. |
* Truncates the string {@code s} to the specified {@code length}. | ||
* If the length of {@code s} is less than or equal to {@code length}, returns {@code s}. | ||
* Otherwise, returns a truncated string of length {@code length} with "..." appended at the end. |
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.
Wow! Very nice comment yadunut!
src/main/java/seedu/address/logic/commands/module/ListModulesCommand.java
Outdated
Show resolved
Hide resolved
@@ -22,4 +24,14 @@ public boolean hasModule(ModuleCode code) { | |||
public Module getModule(ModuleCode code) { | |||
return moduleMap.get(code); | |||
} | |||
|
|||
public List<Module> getModulesByPrefix(String prefix) { |
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.
Nice function! 👭
Closes #48