- if match.command('check'):
- chore_id = match.args()[1]
- result = self.data.check(chore_id)
- return [result]
-
- if match.command('done'):
- ids = match.args()[1:]
- results = []
- for chore_id in ids:
- result = self.data.done(chore_id)
- results.append(result)
- return results
-
- if match.command('undo'):
- chore_id = match.args()[1]
- result = self.data.undo(chore_id)
- return [result]