This file contains configuration and documentation for Claude Code to help with development tasks.
This is the backplane-cli project, a CLI tool to interact with the OpenShift backplane API. It's written in Go and provides cluster management capabilities.
# Build the project
make build
# Build static binary
make build-static
# Install binary system-wide
make install
# Clean build artifacts
make clean
# Cross-platform builds
make cross-build
make cross-build-darwin-amd64
make cross-build-linux-amd64# Run tests
make test
# Run linting
make lint
# Generate coverage report
make coverage
# Security vulnerability scan
make scan
# Generate mocks
make mock-gen
# Generate code
make generate# Build container image
make image
# Build builder image
make build-image
# Run tests in container
make test-in-container
# Run lint in container
make lint-in-containercmd/ocm-backplane/- Main CLI application entry pointpkg/- Core packages and librariesinternal/- Internal packagesvendor/- Vendored dependenciesdocs/- Documentationhack/- Build and development scripts
- Go Version: 1.19+
- Module:
github.com/openshift/backplane-cli - Binary Name:
ocm-backplane
The project uses golangci-lint with the following enabled linters:
- errcheck
- gosec
- govet
- ineffassign
- staticcheck
- unused
- Make changes to code
- Run
make lintto check code quality - Run
make testto run tests - Run
make buildto build the binary - Test the functionality manually if needed
- This is an OCM plugin - the binary has prefix
ocm-and can be invoked asocm backplane - Configuration file expected at
$HOME/.config/backplane/config.json - The project uses Go modules with vendoring
- Static linking is used for the final binary