Skip to content

Conversation

@umpire274
Copy link
Owner

πŸ—„οΈ Database management

  • Introduced a new db command for database lifecycle control:
    • librius db --init β†’ initializes or resets the current database.
    • librius db --reset β†’ alias of --init.
    • librius db --copy -f <FILE> β†’ copies the database defined in librius.yaml to a new file.
  • The database path is now automatically resolved from the configuration (`database: key).
  • Added localized messages for all database operations.
  • Fixed --copy flag behavior (no longer requires a value).

πŸ“š Enhanced detailed list view

  • Fixed incorrect alphabetical sorting of fields in list --id <ID> --details.
  • Restored proper database field order:
    id, title, author, editor, year, isbn, language, pages, genre, summary, room, shelf, row, position, added_at.
  • Added localized column headers (Field / Value) in vertical table view.
  • Introduced new `--compact flag to hide empty fields in detailed mode.
  • --compact now requires `--details to ensure logical CLI usage.

🧩 General

  • Updated help messages and i18n translations.
  • Improved CLI consistency and visual output formatting.

Linked Issue / Milestone

Closes milestone v0.5.1 – Database management & improved list details view

- Added `librius db` command for database lifecycle management.
- Supports `--init`, `--reset`, and `--copy -f <FILE>` flags.
- Integrated with configuration database path (`config.database`).
- Updated CLI parser, i18n messages, and docs for v0.5.1.
- Added `--compact` flag for `list --id <ID> --details` to hide empty fields in vertical view.
- Fixed table headers and ensured correct field order (id β†’ added_at).
- The `--compact` flag now requires `--details`, preventing invalid combinations.
- Updated i18n messages and CLI help for better usability.
@umpire274 umpire274 self-assigned this Nov 12, 2025
@umpire274 umpire274 added bug Something isn't working enhancement New feature or request labels Nov 12, 2025
@umpire274 umpire274 merged commit e385ac9 into main Nov 12, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants