Contributing

Gaet keeps its runtime dependency-free and treats code as the source of truth for documentation.

Set up

git clone https://github.com/ghaniyyrahmans/gaet.git
cd gaet
go test ./... -count=1

Build

go build -ldflags="-s -w" -o gaet ./cmd/gaet

Project rules

RuleExpectation
DependenciesStandard library only; no third-party Go modules
DistributionCLI, backup engine, and dashboard ship as one binary
OutputASCII status tags such as [ OK ] and [FAIL], no emoji
PathsUse filepath.Join or os.PathSeparator
ErrorsActionable hints and troubleshooting links

Tests

The suite is integration-focused: it compiles the binary and drives subcommands. Add coverage in tests/*_test.go for every new command, flag, or fix.

go test ./... -count=1

Documentation drift

bash sandbox/verify-docs.sh

The script must exit 0. It checks that every documented gaet command exists in the dispatch, environment keys are backed by source, relative links and anchors resolve, live docs are listed in docs/README.md, SDK methods match sdk/src/client.ts, and documented ~/.gaet paths exist in pkg/core/paths.go.

When the gate fails, update the documentation rather than the gate. If a claim describes behavior that does not exist, either implement it with tests or remove the claim.

Branches

main is the development branch and lts/v1.1 is the production release branch. Changes land on main, pass the suite, then move to lts/v1.1.