Development
Development
Code Organization
Sources/cakectl/Commands/– CLI command handlersSources/caked/Commands/andSources/caked/Handlers/– daemon command and runtime handlersSources/cakedlib/– shared utilities, config, and core abstractions
Tests
Primary test locations:
Tests/CakerTests/Caker/CakerTests/integration/tests/
Contribution Workflow
- Create a branch from
main. - Implement focused changes.
- Run relevant tests and build checks.
- Open a pull request with clear context.
Contributor guide: CONTRIBUTING.md
Useful Scripts
Scripts/build-signed-debug.sh- Build debug version with signingScripts/build-signed-release.sh- Build release version with signingScripts/act.sh- Local GitHub Actions testingScripts/run-signed-caked.sh- Run signed daemonScripts/run-signed-cakectl.sh- Run signed CLI
Development Environment
Requirements
- macOS (required for Virtualization framework)
- Xcode with Swift toolchain
- Signing certificates and provisioning profiles
- Optional: GitHub CLI for pull request management
Getting Started
- Clone the repository
- Run
./Scripts/build-signed-debug.shto build - Use the run scripts to test components
- Run tests via Xcode or command line
Code Style
- Follow Swift conventions
- Use clear, descriptive naming
- Add documentation for public APIs
- Include tests for new functionality