How mfuentesg/ksd works
Project type and purpose
• This is a small open-source, command-line tool (“ksd”) written in Go.
File-structure analysis
• Top-level:
• main.go / main_test.go → entrypoint + unit tests
• mock.json / mock.yml → sample inputs for tests
• go.mod, go.sum → dependency management
• .github/workflows → CI (lint, tests, coverage)
• .goreleaser.yml → release pipeline
• README.md, LICENSE → documentation
• No subdirectories under cmd/ or pkg/: all code lives in main.go, implying a single binary architecture.
• CI pipeline automatically lints (golangci-lint), runs tests, publishes coverage, and uses goreleaser for builds/distribution.
README insights
• Describes installation (go get / Brew) and usage (kubectl get secret … | ksd or ksd < file.json).
• Example demonstrates JSON input → JSON output.
• No mention of plugin architecture; core functionality is single responsibility: decode secrets.