Skip to content

Conversation

@maxlandon
Copy link
Member

  • Restructure most of the code and tighten the API
  • Various things:
  • Repairing tests in parser package
  • Refactor and refine positional arguments code
  • Multiple fixes to flag completion following refactoring + update carapace repository import path
  • Remove useless function in API
  • Format
  • Revert to old type completer detection function
  • Fix most tests in the gen package
  • Fix tests in gen package
  • Regenerate values
  • Fix generated values and some imports
  • Fix most tests in parser package.
  • Fix function missing in tests
  • Code cleanups in gen package
  • Code cleanup with new context for scanning
  • Cleanup gen/completions package
  • Code cleanup in parser package. Still problems to fix
  • Code cleanup in other internal packages
  • Fix validation flags/args
  • Refactor parser code and fix its tests.
  • Other fixes
  • Small refactors
  • Fix positional tests and related code.
  • Refactors
  • Implement base Kong tags, negatable flags and custom separators + tests
  • Implement XOR flags, passthrough args, but problem with tests.
  • Implement default commands
  • Implement Kong-style ENV support
  • Implement variable expansion in tags and with options
  • Kong ignore
  • Add support/compat for other Kong tags
  • Refactors and comments + implement xorprefix
  • Refactoring
  • Implement kong-style positional support, and fix all tests
  • Cleanup and refactor gen/flags package
  • First steps of refactoring/cleanup.
  • First steps of a FieldContext implentation
  • Add hint completion for positionals + refactors + fixes
  • Start refactoring completions into main scan code
  • Refactor completions package into main parser code
  • Custom list separators in completions
  • Cleanup errors
  • Better checks for unexported fields
  • Support for individual persistent flags
  • Add validations for scanned flag types
  • Cleanup / refactor some tests
  • Fmt
  • Add support for binding/tagging custom completers
  • Fix validation for user-defined types.
  • Add tests that had disappeared
  • Update README and remove old Go doc
  • Update README

maxlandon added 30 commits July 12, 2025 04:28
- Remove vendor directory.
- Refactor validations both in internal and on the public API.
- Compiles, but does not yet validate yet.

// === Primary Entry Points ===

// Generate parses a struct and creates a new, fully configured *cobra.Command.

Check warning

Code scanning / Revive (reported by Codacy)

comment on exported function Parse should be of the form "Parse ..." Warning

comment on exported function Parse should be of the form "Parse ..."
@maxlandon maxlandon merged commit 19879c4 into main Jul 30, 2025
10 of 11 checks passed
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