feat(format): add check and fix workflows
This commit is contained in:
@@ -309,15 +309,26 @@ gitzone format
|
||||
# Emit a machine-readable plan
|
||||
gitzone format plan --json
|
||||
|
||||
# Fail when formatting changes or validator errors remain
|
||||
gitzone format check
|
||||
|
||||
# Run a subset of formatters
|
||||
gitzone format --only prettier,packagejson
|
||||
|
||||
# Apply changes
|
||||
gitzone format --write
|
||||
|
||||
# Apply without prompt
|
||||
gitzone format --write --yes
|
||||
|
||||
# Apply deterministic fixes, then use opencode for remaining issues
|
||||
gitzone format fix
|
||||
```
|
||||
|
||||
Formatters include cleanup, smartconfig normalization, dependency license checks, package metadata normalization, template updates, `.gitignore`, TypeScript config, Prettier, README existence checks, and configured copy operations.
|
||||
|
||||
`gitzone format fix` intentionally lives outside the default format path. Normal format runs stay deterministic; the fix command uses opencode only after deterministic formatters have done what they can.
|
||||
|
||||
## Development Services
|
||||
|
||||
`gitzone services` manages local Docker-backed services for development projects.
|
||||
|
||||
Reference in New Issue
Block a user