Closed danielgtaylor closed 1 month ago
The pull request introduces significant enhancements to the documentation for the Service CLI, detailing how to utilize the CLI utility effectively. Key updates include expanded instructions on defining input options, creating CLI instances, and running the service with command-line arguments. Additionally, it clarifies the precedence of command-line arguments, introduces new sections for custom commands, and improves error handling for the OpenAPI command. The codebase also sees the addition of a new method and an update to an existing method's signature in main.go
.
File Path | Change Summary |
---|---|
docs/docs/features/cli.md | Expanded documentation on CLI usage, including input options, command execution, error handling, and custom commands. Improved structure for navigation. |
.../main.go | Added func main() . Updated method signature from func (cmd *cobra.Command, args []string) to func (cmd *cobra.Command, args []string, options *YourOptions) . |
Objective | Addressed | Explanation |
---|---|---|
Ensure huma.API.OpenAPI() reflects field nullability in CLI output (#618) |
❌ | The documentation does not indicate changes to the OpenAPI output handling. |
Ensure CLI command matches hosted /openapi.yaml (#618) |
❌ | No updates were made to align the CLI output with the hosted OpenAPI spec. |
🐰 In the garden where bunnies play,
The CLI blooms in a brand new way.
With options clear and commands bright,
Our service shines, a pure delight!
Hop along, let’s run and cheer,
For every change brings joy near! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 92.88%. Comparing base (
ee574f8
) to head (fba44fd
). Report is 2 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR updates the example command to use the
OpenAPI().YAML()
method which handles serialization to YAML for you without the need of a third-party library and taking into account custom serialization logic.Fixes #618.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation