mirror of
https://github.com/hanzoai/s3-cli.git
synced 2026-10-30 18:23:12 +00:00
Vendor the CLI helpers into pkg/, use hanzos3/go, rename the module to hanzoai/s3-cli, and gate the names in cmd/names_test.go. Claude-Session: https://claude.ai/code/session_011i2AG9nwpiKUCVxAdDzYuU
18 lines
544 B
Makefile
18 lines
544 B
Makefile
# Generate db.go from db.json downloaded nodejs mime-db project.
|
|
# NOTE: Autogenerated db.go needs to be vet proofed. \
|
|
Manually edit json -> JSON for all variable names
|
|
all: download build
|
|
|
|
# Download db.json from NodeJS's mime-db project. It is under MIT license.
|
|
download:
|
|
@mkdir db
|
|
@wget -nv -q https://cdn.rawgit.com/jshttp/mime-db/master/db.json -O db/db.json
|
|
|
|
|
|
# After generating db.go, clean up downloaded db.json.
|
|
build: download
|
|
@go run util/gen-db.go db/db.json > db.go
|
|
@rm -f db/db.json
|
|
@rm -rf db
|
|
@echo Generated \"db.go\".
|