docs: trim code comments to the why (#676)

Comments that restated names or narrated the code are gone, and multi-line ones are cut to a line of why.
Only comments change: each edited Go file has the same token stream as before. winapi and abe come later.
This commit is contained in:
Roger authored and GitHub committed 2026-11-02 00:03:03 +08:00
1 parent 4e98ba7884
commit 0ed920f846
130 files changed
+201 -869

No files matched your search

+1 -3
View File
@@ -36,9 +36,7 @@ GitHub: https://github.com/moonD4rk/HackBrowserData`,
dump := dumpCmd()
root.AddCommand(dump, dumpKeysCmd(), archiveCmd(), restoreCmd(), listCmd(), versionCmd())
// Default to dump when no subcommand is given.
// Copy dump flags to root so that `hack-browser-data -b chrome`
// works the same as `hack-browser-data dump -b chrome`.
// Without a subcommand the root runs dump, as v1.1.0 did, so it carries dump's flags too.
root.RunE = func(cmd *cobra.Command, args []string) error {
dump.SetContext(cmd.Context())
return dump.RunE(dump, args)