Skip to content

feat: enhance ux and resolve defects - #10

Merged
jrschumacher merged 8 commits into
mainfrom
enhance-with-init
Jun 25, 2025
Merged

jrschumacher merged 8 commits into
mainfrom
enhance-with-init

Conversation

@jrschumacher

Copy link
Copy Markdown
Owner

Core Implementation Files Added/Modified:

New Files:

  • .adder.yaml - Project configuration with binary_name: adder
  • docs/commands/adder.md - Root command definition
  • config.go - Configuration loading and validation
  • cmd/adder/generated/adder_generated.go - Generated root command

Modified Core Files:

  • types.go - Added BinaryName field to Config struct
  • parser.go - Added root command detection using binary_name.md pattern
  • cmd/adder/handlers.go - Updated to use new binary_name parameter and validation
  • docs/commands/generate.md - Added --binary-name/-b flag

Documentation Updates:

  • README.md - Added configuration section, updated quick start steps
  • CLAUDE.md - Added binary_name configuration documentation

Key Changes:

  1. Required Configuration: binary_name is now required in .adder.yaml or via --binary-name flag
  2. Root Command Detection: Parser looks for {binary_name}.md in input directory as the CLI root
    command
  3. CLI Flag: Added --binary-name/-b flag to generate command
  4. Validation: Config loading and generate command validate that binary_name is provided
  5. Updated Examples: Changed examples from docs/man to docs/commands for consistency

Statistics:

  • 16 files modified
  • +1,308 lines added, -511 lines removed
  • Major functionality: Root command detection, configuration system, validation

The implementation successfully addresses the original issue where adder.md wasn't being
recognized as the root command by making binary name configuration explicit and required.

Core Implementation Files Added/Modified:

  New Files:
  - .adder.yaml - Project configuration with binary_name: adder
  - docs/commands/adder.md - Root command definition
  - config.go - Configuration loading and validation
  - cmd/adder/generated/adder_generated.go - Generated root command

  Modified Core Files:
  - types.go - Added BinaryName field to Config struct
  - parser.go - Added root command detection using binary_name.md pattern
  - cmd/adder/handlers.go - Updated to use new binary_name parameter and validation
  - docs/commands/generate.md - Added --binary-name/-b flag

  Documentation Updates:
  - README.md - Added configuration section, updated quick start steps
  - CLAUDE.md - Added binary_name configuration documentation

  Key Changes:

  1. Required Configuration: binary_name is now required in .adder.yaml or via --binary-name flag
  2. Root Command Detection: Parser looks for {binary_name}.md in input directory as the CLI root
  command
  3. CLI Flag: Added --binary-name/-b flag to generate command
  4. Validation: Config loading and generate command validate that binary_name is provided
  5. Updated Examples: Changed examples from docs/man to docs/commands for consistency

  Statistics:

  - 16 files modified
  - +1,308 lines added, -511 lines removed
  - Major functionality: Root command detection, configuration system, validation

  The implementation successfully addresses the original issue where adder.md wasn't being
  recognized as the root command by making binary name configuration explicit and required.
@jrschumacher
jrschumacher merged commit 902aa52 into main Jun 25, 2025
@jrschumacher
jrschumacher deleted the enhance-with-init branch June 25, 2025 23:37
jrschumacher added a commit that referenced this pull request Jun 25, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.3.0](v0.2.0...v0.3.0)
(2025-06-25)


### Features

* enhance ux and resolve defects
([#10](#10))
([902aa52](902aa52))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

1 participant

⌂ 换网址