refactor: run every command on the pipeline (#665)

dump, dumpkeys, archive, restore, and list now run on the app stages, so cmd's old path goes away.
archive writes manifest.json and restore reads it, falling back to today's layout for older archives.
Windows and macOS smoke matched today's output apart from the planned changes.
This commit is contained in:
Roger authored and GitHub committed 2026-10-29 14:15:59 +08:00
1 parent cebfa97ed6
commit bbd353f314
45 files changed
+1516 -664

No files matched your search

+1
View File
@@ -37,6 +37,7 @@ GitHub: https://github.com/moonD4rk/HackBrowserData`,
// Copy dump flags to root so that `hack-browser-data -b chrome`
// works the same as `hack-browser-data dump -b chrome`.
root.RunE = func(cmd *cobra.Command, args []string) error {
dump.SetContext(cmd.Context())
return dump.RunE(dump, args)
}
dump.Flags().VisitAll(func(f *pflag.Flag) {