feat: cli migrate to cobra with subcommands (#550)

* feat: migrate CLI to cobra with dump/list/version subcommands (#546)
* fix: remove residual duckduckgo references and add README/LICENSE to release archives
* fix: address PR review feedback from Copilot
This commit is contained in:
Roger
2026-04-05 14:25:51 +08:00
committed by GitHub
parent 068b82178f
commit 4af2ded428
15 changed files with 418 additions and 112 deletions
+9 -3
View File
@@ -6,7 +6,7 @@ before:
builds:
- id: "hack-browser-data"
main: ./cmd/hack-browser-data/main.go
main: ./cmd/hack-browser-data/
binary: hack-browser-data
env:
- CGO_ENABLED=0
@@ -23,11 +23,17 @@ builds:
- -trimpath
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.ShortCommit}}
- -X main.buildDate={{.Date}}
archives:
- id: "archive"
format: zip
builds: ["hack-browser-data"]
formats:
- zip
files:
- README.md
- LICENSE
name_template: >-
hack-browser-data-
{{- if eq .Os "darwin" }}osx