Skip to content

Commit 48ad2a5

Browse files
author
Sahil
committed
Add todo app layout
1 parent c09cd27 commit 48ad2a5

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ To discuss any doubts or questions after today's class with the community, join
1515
- Lecture 2: [[Notes]](/lecture2.md) [[Video]](https://www.youtube.com/watch?v=Q7nvvSlWem4) - Operators, Basic Control Flow - Conditionals, Loops and Functions
1616
- Lecture 3: [[Notes]](/lecture3.md) [[Video]](https://www.youtube.com/watch?v=tmxCgqNSj88) - Basic Data Structures and Containers: Lists, Tuples, Sets, Dictionaries
1717
- Lecture 4: [[Notes]](/lecture4.md) [[Video]](https://www.youtube.com/watch?v=NsOzuuLlR08) - Organizing Code & Dependency Management
18-
- Lecture 5: [[Notes]](/lecture5.md) [[Video]](https://www.youtube.com/watch?v=kj61srFJ9fY) - File I/O, reading and writing text, csv and json files
18+
- Lecture 5: [[Notes]](/lecture5.md) [[Video]](https://www.youtube.com/watch?v=kj61srFJ9fY) - File I/O, reading and writing text, csv and json files
19+
- Lecture 6: [[Notes]](todo_cli/README.md) [[Video]](https://www.youtube.com/watch?v=tHDoTDpfRE4) - Building a Todo CLI App with Python

todo_cli/README.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Todo Command Line Application
2+
3+
## Create a virtual environment (optional)
4+
5+
Python 3:
6+
```
7+
$ pip3 install virtualenv
8+
$ virtualenv -p python3 venv
9+
```
10+
11+
Activate the environment:
12+
13+
```
14+
source venv/bin/activate
15+
```
16+
17+
## Use cases
18+
19+
- Create a todo list
20+
- Add, Edit and Delete todo items in a todo list
21+
- Mark todo items as complete and incomplete
22+
- Show all todo items in a todo list
23+
24+
## Commands
25+
26+
1. `todo lists`
27+
2. `todo use list`
28+
3. `item add item_names`
29+
4. `item list`
30+
5. `item edit item_id new_item_name`
31+
6. `item remove item_id`
32+
7. `item complete item_id`
33+
8. `item incomplete item_id`

todo_cli/app.py

Whitespace-only changes.

0 commit comments

Comments
 (0)