Skip to content

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 01 Nov 16:50
Immutable release. Only release title and notes can be modified.
dec1a9f

CONGA v0.5.0 renames the group help-heading tag to section and rejects flag groups and tags that previously had no effect.

⚠ Breaking Changes & Migration

  • group tag renamed to section (#91, closes #87):
    • Rename group:"..." to section:"..." on flags, commands, and built-in command fields. group is now an unknown tag and fails schema build with ErrSchema unless allowed with app.AllowTags("group").
  • Flag groups that had no effect are rejected (#91):
    • A one-member xor or and group, a one-member oneof group on a flag other than a Counter, and a flag in both an exclusive (xor or oneof) group and an and group fail schema build with ErrSchema.
    • Remove the group tag, add the missing members, or use RequiredFlag instead of a one-member oneof.
  • CONGA tags on plain fields are rejected (#91):
    • CONGA tags on fields that are not containers used to be ignored. They now fail schema build with ErrSchema. Remove the tags, or make the field a container.

📚 Documentation

  • website: Document flag grouping, built-in short flags, and help wrapping (2d443b4).

Full Changelog: v0.4.0...v0.5.0

Requirements: Go 1.27+ · Docs · pkg.go.dev