nvrl
|
307bbac96c
|
refactor(cli): split main.rs by command area into seven modules
main.rs keeps the command definitions, main's dispatch and the helpers
every area uses (control_request, ok_or_bail, path_arg, the formatters).
The commands move, unchanged, into:
- account.rs: login, unlock, lock, logout
- files.rs: mount, pins, ls, search, rename, move, copy, du, rm,
versions, trash, mkdir, upload, refresh
- photos.rs: timeline, favorites, albums, the Google Photos import,
re-dating
- sharing.rs: share, members, roles, public links, shared items,
invitations, bookmarks, leave
- status.rs: status, locations, devices, diagnostics, cache
- sync.rs: sync, conflicts, the sync queue, issues, export, restore,
limits, ignore rules, health
- diagnose.rs: pdfs diagnose and its report, with its tests
main.rs goes from 4,842 lines to 1,620. No behaviour changes.
|
2026-11-26 16:25:28 +01:00 |
|