Skip to content

feat: improve easyp init command#202

Merged
2 commits merged intomainfrom
feat/improve-init-command
Feb 21, 2026
Merged

feat: improve easyp init command#202
2 commits merged intomainfrom
feat/improve-init-command

Conversation

@ZergsLaw
Copy link
Copy Markdown
Contributor

  • Template-based config generation with comments (text/template + go:embed)
  • Export rule groups from rules package (RuleGroup, AllGroups, AllRuleNames)
  • Interactive prompter via bubbletea (Confirm, Select, MultiSelect, Input)
  • Overwrite protection with interactive confirmation
  • Root-only buf.yml search instead of recursive WalkDir
  • Full buf migration: deps, breaking.ignore, logging for unsupported fields
  • Add Exists/Remove methods to FS interface
  • Fix resource leaks with defer Close()
  • Fix addUnary to use GetRuleName instead of hardcoded strings
  • Remove defaultConfig duplication
  • Remove Version field from Config (not needed)
  • Remove NoopPrompter, --yes, --force flags (init is interactive-only)

- Template-based config generation with comments (text/template + go:embed)
- Export rule groups from rules package (RuleGroup, AllGroups, AllRuleNames)
- Interactive prompter via bubbletea (Confirm, Select, MultiSelect, Input)
- Overwrite protection with interactive confirmation
- Root-only buf.yml search instead of recursive WalkDir
- Full buf migration: deps, breaking.ignore, logging for unsupported fields
- Add Exists/Remove methods to FS interface
- Fix resource leaks with defer Close()
- Fix addUnary to use GetRuleName instead of hardcoded strings
- Remove defaultConfig duplication
- Remove Version field from Config (not needed)
- Remove NoopPrompter, --yes, --force flags (init is interactive-only)

# Conflicts:
#	go.mod
@ghost ghost force-pushed the feat/improve-init-command branch from 555ccc6 to 721ee2b Compare February 21, 2026 20:41
@ghost ghost merged commit 039d00d into main Feb 21, 2026
1 check passed
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants