mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
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:
1 parent
2e7ee3c69f
commit
a7741eaab2
40 files changed
+242
-256
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user