-
Notifications
You must be signed in to change notification settings - Fork 0
Command line todo list #3
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
base: master
Are you sure you want to change the base?
Conversation
| desc "-a or --add [TASK]", "Adds an item into the list of tasks" | ||
| map %w[-a --add] => :add | ||
| def add(task) | ||
| @store.tasks = @store.tasks << task |
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.
Maybe provide add_task or something in the store object so that the UI layer is kept as think as possible
| return | ||
| end | ||
|
|
||
| shell.say "\n\"\e[1m#{tasks.delete_at(item.to_i - 1)}\"\e[0m [removed]\n\n" |
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.
Probably should separate the business logic from showing messages to user to make the presentation logic less invasive
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.
Also could be cool to provide some kind of helper that removes the noise from using color codes

Command line todo list
Description
Write an command line application that helps you manage your tasks.
The information can be stored in any prefered way. The program should be launched from the console with different attributes: