Skip to content

refactor: merge found CLI into proton#1

Merged
M09Ic merged 3 commits into
masterfrom
refactor/merge-found
May 31, 2026
Merged

refactor: merge found CLI into proton#1
M09Ic merged 3 commits into
masterfrom
refactor/merge-found

Conversation

@M09Ic

@M09Ic M09Ic commented May 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Merge found CLI tool into proton repository
  • templates/ Go package renamed to template/ (singular)
  • rules/spray/templates/extract/ (replaces extract.yaml)
  • found YAML templates at templates/found/
  • CI workflows: test + goreleaser
  • All 16 cmd tests pass

Structure

proton/
├── main.go              → found CLI entry
├── cmd/                 → CLI logic (validate, update-templates, display)
├── pkg/                 → embedded template data
├── protocols/file/      → scanning engine (library)
├── template/            → Template struct (library)
└── templates/           → YAML data (found/ + extract/)

🤖 Generated with Claude Code

M09Ic and others added 3 commits May 31, 2026 04:31
Migrate the found CLI tool into the proton repository:

- Add found CLI (cmd/, main.go, pkg/) with template management features:
  --validate, --template-display, --update-templates
- Rename templates/ Go package to template/ (singular) to free
  the path for YAML data
- Move rules/spray/ to templates/extract/ (replaces extract.yaml)
- Copy found YAML templates into templates/found/
- Add CI workflows (test + goreleaser)
- Generated embed data committed (pkg/data/*.bin)

Import path changes:
- proton/templates → proton/template (Template struct)
- templates/ is now the YAML data directory

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- templates/ is now a git submodule (github.com/chainreactors/templates)
- pkg/data/*.bin and pkg/templates.go excluded via .gitignore
- CI updated: submodules: recursive + go generate step

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@M09Ic M09Ic merged commit 66e6541 into master May 31, 2026
1 check passed
@M09Ic M09Ic deleted the refactor/merge-found branch May 31, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant