Step 1: Replace C++ prototype with Go project scaffolding.

Remove all old C++ source files, proto definitions, CMake build,
clang configs, IDE files, and Trunk linter config. Initialize Go
module (github.com/kisom/sgard) with cobra and yaml.v3 deps.
Set up cobra root command with --repo persistent flag.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-23 21:19:37 -07:00
parent b678ce572a
commit 6cadda01a8
23 changed files with 71 additions and 420 deletions

View File

@@ -6,13 +6,13 @@ Implementation plan for sgard. See ARCHITECTURE.md for design details.
Remove old C++ source files and set up the Go project.
- [ ] Remove old files: `sgard.cc`, `proto/`, `CMakeLists.txt`, `scripts/`, `.clang-format`, `.clang-tidy`, `.idea/`
- [ ] `go mod init github.com/kisom/sgard`
- [ ] Add dependencies: `gopkg.in/yaml.v3`, `github.com/spf13/cobra`
- [ ] Create directory structure: `cmd/sgard/`, `manifest/`, `store/`, `garden/`
- [ ] Set up `cmd/sgard/main.go` with cobra root command and `--repo` persistent flag
- [ ] Update CLAUDE.md to reflect Go project
- [ ] Verify: `go build ./...` compiles clean
- [x] Remove old files: `sgard.cc`, `proto/`, `CMakeLists.txt`, `scripts/`, `.clang-format`, `.clang-tidy`, `.idea/`, `.trunk/`
- [x] `go mod init github.com/kisom/sgard`
- [x] Add dependencies: `gopkg.in/yaml.v3`, `github.com/spf13/cobra`
- [x] Create directory structure: `cmd/sgard/`, `manifest/`, `store/`, `garden/`
- [x] Set up `cmd/sgard/main.go` with cobra root command and `--repo` persistent flag
- [x] Update CLAUDE.md to reflect Go project
- [x] Verify: `go build ./...` compiles clean
## Step 2: Manifest Package