This commit was merged in pull request #105.
This commit is contained in:
@@ -355,11 +355,11 @@ the server say *no* is the point: "never commit to `main`" is now a rule, not a
|
||||
the CLI), and it does what you asked. Run it:
|
||||
|
||||
```bash
|
||||
python cli.py add "keeper" ; python cli.py add "trash"
|
||||
python cli.py list # note the index shown next to "trash"
|
||||
python cli.py done <trash-index> # use the index "list" just printed, NOT a fixed 1
|
||||
python cli.py clear-done # expect it to remove the completed one
|
||||
python cli.py list # "keeper" remains, "trash" is gone
|
||||
python3 cli.py add "keeper" ; python3 cli.py add "trash"
|
||||
python3 cli.py list # note the index shown next to "trash"
|
||||
python3 cli.py done <trash-index> # use the index "list" just printed, NOT a fixed 1
|
||||
python3 cli.py clear-done # expect it to remove the completed one
|
||||
python3 cli.py list # "keeper" remains, "trash" is gone
|
||||
```
|
||||
|
||||
Read the index off `list` rather than assuming it: `done` is positional, and your `tasks-app` has
|
||||
|
||||
Reference in New Issue
Block a user