Feat #5: expose import and export workflows

This commit is contained in:
Philip Henning 2026-09-08 15:22:55 +02:00
parent 024b08459c
commit 20e7d63665
7 changed files with 451 additions and 0 deletions

View file

@ -102,6 +102,17 @@ Both actions require Privileged Mode because a successful result changes
`/etc/hosts`. A failed lookup reports the failure and keeps the previously
stored mapping.
## Import and export Host Entries
Press `Ctrl+X` to export the current in-memory Host Entries. Choose hosts, JSON, or
CSV and enter a destination path. The workflow validates the destination and
requires explicit confirmation before an existing file is overwritten.
Press `Ctrl+O` in Privileged Mode to import a hosts, JSON, or CSV file. Choose the
format explicitly, then select the source path. A successful import replaces
the current Host Entries and saves the Hosts File; parse and save errors remain
visible in the message rail and leave the current file unchanged.
## Verify what is on disk
The details shown by the application normally match the last successful save.
@ -247,6 +258,7 @@ continually retrying it.
| `Ctrl+R` | Reload `/etc/hosts` |
| `Ctrl+F` | Open advanced filters |
| `c` | Open configuration |
| `Ctrl+X` | Export Host Entries |
| `?` | Show help |
| `q` or `Ctrl+C` | Quit |
| `Ctrl+E` | Enter or leave Privileged Mode |
@ -266,6 +278,7 @@ continually retrying it.
| `Ctrl+Z` / `Ctrl+Y` | Undo or redo and save the result |
| `Ctrl+S` | Save the current in-memory state |
| `b` | Review session backup changes and confirm restoration |
| `Ctrl+O` | Import Host Entries from hosts, JSON, or CSV |
Within the Entry Editor, use `Tab` and `Shift+Tab` to move between fields and
`Escape` to leave the form. If values changed, the application asks whether to