refactor(cli): flatten keys export/import into dumpkeys/restore

The keys noun-group clashed with the flat dump/list verbs; unify on flat verbs and drop the keys parent. Pure rename, no behavior change.
This commit is contained in:
moonD4rk
2026-06-03 23:50:23 +08:00
parent 2666b813cd
commit 294bda7785
3 changed files with 61 additions and 59 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ GitHub: https://github.com/moonD4rk/HackBrowserData`,
root.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "enable debug logging")
dump := dumpCmd()
root.AddCommand(dump, listCmd(), keysCmd(), versionCmd())
root.AddCommand(dump, dumpKeysCmd(), restoreCmd(), listCmd(), versionCmd())
// Default to dump when no subcommand is given.
// Copy dump flags to root so that `hack-browser-data -b chrome`