AY2324S2-CS2113T-T09-1 / tp

0 stars 6 forks source link

Update viewCommand to accept more flags and arguments, and fixed multiple bugs (v0.2) #206

Closed e0958902 closed 7 months ago

e0958902 commented 7 months ago

Checklist for feature implementation and modification

Closes #162, #175, #171, #169, #165, #153, #152, #166, #181

Checklist for non-implementation related PR

Closes #162, #175, #171, #169, #165, #153, #152, #166, #181

Additional Information

The flags will filter out the medications according to their flag type;

Current version only supports "view -l "

In v0.2, 2 and 3 will be implemented to include comparator and sorted according to expiry date and quantity respectively.

  1. [x] view -n <------- Shows medications that contains the name
  2. [x] view -q <-- Shows medications that have that quantity lower than specified
  3. [x] view -e <------ Shows medications that will expire by specified year
  4. [x] view -r <----Shows medications that contains the specified remarks
  5. [x] view -r -e Throws an error message that you can only use one flag