zqk CLI Commands
This directory contains the zqk CLI command implementations, organized by topical groups.
Command Organization
Commands are organized into four topical groups matching the CLI ontology:
Object Commands (object/)
CRUD operations for all object types:
create- Create new objectslist- List objects with filteringget- Get specific object by IDupdate- Update existing objectsdelete- Delete objects
Domain Commands (domain/)
Domain-specific operations:
backlog- Backlog item managementgoal- Goal operationsmilestone- Milestone operationsworkstream- Workstream operationspriority-plan- Priority plan operations
System Commands (system/)
System-level operations:
init- Initialize a new zqk projectstatus- Show system statusvalidate- Validate objectssync- Sync with remotecheck- Check object health and integrity
Utility Commands (utility/)
Helper operations:
version- Show version informationmigrate- Migrate data between backendsdocman- Documentation management
Adding New Commands
- Place the command file in the appropriate subfolder
- Export a
New*Cmd()function that returns*cobra.Command - Register the command in
root.go'sregisterCommands()function
Example
// cmd/zqk/system/status.go
package system
import "github.com/spf13/cobra"
func NewStatusCmd() *cobra.Command {
return &cobra.Command{
Use: "status",
Short: "Show system status",
RunE: runStatus,
}
}