Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mkaz
Copy link
Owner

@mkaz mkaz commented May 24, 2025

Closes #1

  • Add edit book command: libro edit ID
  • Adds prompt_toolkit dependency
  • Add combo BookReview model, making Book and Review about db model

mkaz added 8 commits May 10, 2025 08:37
- Remove unused args from add action
- Create new modify file that holds add/edit
- Add stubbed edit action
* Introduce prompt_toolkit for user-friendly command-line editing of book and review entries, including styled prompts and robust validation (year, int, rating, genre, date).

* Add BookReview.get_by_id to fetch combined book and review info for editing.

* Major overhaul to edit_book: now interactively prompts the user for each field with validation, and updates only changed values in the database.

* Updated dependencies (prompt_toolkit added).

* Minor related improvements and refactoring for code clarity and safety.
@mkaz mkaz merged commit 9f89393 into trunk May 24, 2025
@mkaz mkaz deleted the add/1-edit-book branch May 24, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Edit Book

2 participants