Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .claude/commands/build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
description: Build the Windows Machine Config operator and daemon binaries
allowed-tools: Bash
argument-hint: [operator|daemon|all]
---

Build the Windows Machine Config Operator project.

Current status: !`git status --short`

## Build Targets

Build target: ${ARGUMENTS:-operator}

## Execution

1. Validate the build target is one of: operator, daemon, all
2. Check prerequisites:
- Current status is clean (no uncommitted changes)
- Go toolchain is available
- Required dependencies are present
- Remove any previous or existing binaries to avoid conflicts
3. Execute the appropriate make target:
- `operator`: make build
- `daemon`: env GOOS=windows GOARCH=amd64 go build -o "build/_output"/bin/windows-instance-config-daemon.exe ./cmd/daemon
- `all`: build both operator and daemon
4. Report build status:
- Show any compilation errors or warnings
- Confirm successful binary creation and location
- Display build time and binary size

If build fails, analyze the error and suggest fixes.