cde is a Go CLI tool that creates preconfigured tmux coding environments. It uses Cobra for CLI parsing.
main.go— entrypointcmd/root.go— CLI flags, session naming, shared helperscmd/tmux.go—TmuxRunnerinterface and real implementationcmd/ide.go— ide mode layoutcmd/wtree.go— wtree mode layoutcmd/mock_tmux_test.go— mockTmuxRunnerfor tests
go build -o cde . # build
go install . # install to $GOPATH/bin
go test ./... -v # run tests- Tmux interactions go through the
TmuxRunnerinterface — never callexec.Command("tmux", ...)directly in mode files - Tests use
mockTmuxto verify the exact sequence of tmux commands without a real tmux session isGitRepois avar func()so tests can override it