refactor: code simplification and consistency improvements#40
Conversation
- Extract duplicate formatBool to shared package - Add --force flag to schemas delete command for safety - Add --force flag to workflows delete command for safety - Fix GetRootTypes to check for double underscore (__) prefix - Simplify ErrorMessages with strings.Join - Refactor inline interfaces to named tableRenderer type Closes #39
Test Coverage AssessmentSummaryThis PR contains a mix of refactoring and new functionality. The test coverage is acceptable overall but has a notable gap for the new Changes and Coverage Analysis1.
|
Summary
formatBoolfunction to shared package (internal/cmd/shared/format.go)--forceflag to schemas delete command with safety warning--forceflag to workflows delete command with safety warningGetRootTypesto properly check for GraphQL internal types (__prefix instead of_)ErrorMessagesusingstrings.Joininstead of loop concatenationtableRendererinterface in graphql.goTest plan
FormatBoolin shared packageCloses #39
🤖 Generated with Claude Code