cli-todo-jd 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
cli_todo_jd/cli_entry.py CHANGED
@@ -4,6 +4,7 @@ from cli_todo_jd.main import (
4
4
  remove_item_from_list,
5
5
  list_items_on_list,
6
6
  clear_list_of_items,
7
+ cli_menu,
7
8
  )
8
9
 
9
10
 
@@ -73,3 +74,11 @@ def clear_list():
73
74
 
74
75
  # assuming remove_item_from_list(0/None) clears; otherwise replace with your clear implementation
75
76
  clear_list_of_items(args.filepath)
77
+
78
+
79
+ def todo_menu():
80
+ parser = ArgumentParser(description="Todo List CLI Menu")
81
+ parser_optional_args(parser)
82
+ args = parser.parse_args()
83
+
84
+ cli_menu(filepath=args.filepath)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cli-todo-jd
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -15,6 +15,27 @@ Requires-Dist: bump-my-version; extra == "dev"
15
15
 
16
16
  A command line to do list with interactive menu
17
17
 
18
+ ## What is`cli-todo-jd`?
19
+
20
+ This is a command line interface todo list. Once installed, there are two ways to interact
21
+ with the list.
22
+
23
+ ### `todo-menu`
24
+
25
+ Once installed us `todo_menu` to launch into the interactive menu. From here you can add,
26
+ remove, list, or clear your todo list. Items in your list are stored (by default) as
27
+ `.todo_list.json`. The menu does also support optional filepaths using `-f` or `--filepath`.
28
+
29
+
30
+ ### interacting with todo list without menu
31
+
32
+ Alternatly you can interact directly using the following commands (`--filepath can be substituted for -f`)
33
+
34
+ - `todo_add text --filepath optional_path_to_json` used to add an item to your list
35
+ - `todo_remove index --filepath optional_path_to_json` used to remove item number `index`
36
+ - `todo_list --filepath optional_path_to_json` used to view list
37
+ - `todo_clear --filepath optional_path_to_json` used to clear list (prompts y/n to confirm)
38
+
18
39
  ## Getting started
19
40
 
20
41
  To start using this project, first make sure your system meets its
@@ -0,0 +1,8 @@
1
+ cli_todo_jd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ cli_todo_jd/cli_entry.py,sha256=WFigVsmponzukNW-T_35ChdMWS3AVerdfKp2MePZzVo,2109
3
+ cli_todo_jd/main.py,sha256=PfzsSz6whW8BMQ79PoCRvJO5oBN7qhpDFut_HtgjJns,5877
4
+ cli_todo_jd-0.1.1.dist-info/METADATA,sha256=PhFUYCFtAyTd5u_CQ-b5Pn1K6Q_5nvYlxNcqigRLoWs,2951
5
+ cli_todo_jd-0.1.1.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
6
+ cli_todo_jd-0.1.1.dist-info/entry_points.txt,sha256=UtqZ1yqzeQNOOVC232_iqRQCcKu9hL9k5Q-BtyMZSGg,243
7
+ cli_todo_jd-0.1.1.dist-info/top_level.txt,sha256=hOnYr7w1JdQs6MlD1Uzjt24Ca8nvriOWNNq6NaqgHqM,12
8
+ cli_todo_jd-0.1.1.dist-info/RECORD,,
@@ -2,5 +2,5 @@
2
2
  todo_add = cli_todo_jd.cli_entry:add_item
3
3
  todo_clear = cli_todo_jd.cli_entry:clear_list
4
4
  todo_list = cli_todo_jd.cli_entry:list_items
5
- todo_menu = cli_todo_jd.main:cli_menu
5
+ todo_menu = cli_todo_jd.cli_entry:todo_menu
6
6
  todo_remove = cli_todo_jd.cli_entry:remove_item
@@ -1,8 +0,0 @@
1
- cli_todo_jd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- cli_todo_jd/cli_entry.py,sha256=hchk50z0fLwJXp0EtJnOQJnL_N3epapri3oRfHubHW4,1912
3
- cli_todo_jd/main.py,sha256=PfzsSz6whW8BMQ79PoCRvJO5oBN7qhpDFut_HtgjJns,5877
4
- cli_todo_jd-0.1.0.dist-info/METADATA,sha256=6arB2OpzkroM2RRWft3eYyuJKsXA0s1VRAuU8HmySN0,2044
5
- cli_todo_jd-0.1.0.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
6
- cli_todo_jd-0.1.0.dist-info/entry_points.txt,sha256=pt-uqvxVlLV4OWzK-fnEG9O5TtVB_aEwO1QEDYAhx5I,237
7
- cli_todo_jd-0.1.0.dist-info/top_level.txt,sha256=hOnYr7w1JdQs6MlD1Uzjt24Ca8nvriOWNNq6NaqgHqM,12
8
- cli_todo_jd-0.1.0.dist-info/RECORD,,