refactor: name dirs by what they hold, trim exports (#692)

Bare dir now always means a user data dir, so the snapshot root, the export listing, and the
keys.json kind get their own words; names used only inside their package are no longer exported.
This commit is contained in:
Roger authored and GitHub committed 2026-11-10 17:00:43 +08:00
1 parent 2e7ee3c69f
commit a7741eaab2
40 files changed
+242 -256

No files matched your search

+3 -3
View File
@@ -80,8 +80,8 @@ func report(writer io.Writer, summary app.Summary) {
}
}
// foundNothing reports discovery's failures, the likely reason it found no browser data, then says so.
func foundNothing(stderr io.Writer, discovery app.Discovery, message string) bool {
// warnIfNothingFound reports discovery's failures, the likely reason it found no browser data, then says so.
func warnIfNothingFound(stderr io.Writer, discovery app.Discovery, message string) bool {
if len(discovery.Dirs) > 0 {
return false
}
@@ -93,7 +93,7 @@ func foundNothing(stderr io.Writer, discovery app.Discovery, message string) boo
}
// announceExport lists the files a run wrote, even when it stopped early, so the user finds what it left.
func announceExport(stderr io.Writer, exported export.Output) {
func announceExport(stderr io.Writer, exported export.Listing) {
if len(exported.Files) == 0 {
return
}