if match.command('add'):
new = ' '.join(match.args()[1:])
- result = self.data.add_goal(new)
- return [f'Goal added with id {result}']
+ goal_id = self.data.add_goal(new)
+ results = [f'Goal added with id {goal_id}']
+
+ goals = self.data.get_all_goals()
+ results.append('# Goals list...')
+ for goal in goals:
+ results.append(str(goal))
+
+ return results
if match.command('list'):
logger.debug('Asked to list goals...')