feat(cli): Add YAML and JSON output format support#15
Merged
Conversation
- Add global --output/-o flag with yaml (default) and json options - Implement structured output for all major commands (tasks list/get/history, config list, agent-card, connect, version, submit) - Use standard libraries: gopkg.in/yaml.v3 and encoding/json - Add comprehensive tests for output formatting functions - Update documentation with examples and usage instructions - Remove deprecated displayPart function - YAML is now the default output format as requested Resolves #14 Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
…atting Signed-off-by: Eden Reich <eden.reich@gmail.com>
…refactor output handling to use 'any' type instead of 'interface{}'
Also regenerate the types from the latest schema.
- Updated function signatures in cli.go to replace 'interface{}' with 'any' for better type safety.
- Modified output maps in various commands to use 'any' for consistency.
- Adjusted test cases in cli_output_test.go and cli_test.go to reflect the changes in type.
- Ensured compatibility with existing functionality while improving code readability.
Signed-off-by: Eden Reich <eden.reich@gmail.com>
…ckerfile, go.mod, and CI workflows Signed-off-by: Eden Reich <eden.reich@gmail.com>
Signed-off-by: Eden Reich <eden.reich@gmail.com>
Signed-off-by: Eden Reich <eden.reich@gmail.com>
Signed-off-by: Eden Reich <eden.reich@gmail.com>
Signed-off-by: Eden Reich <eden.reich@gmail.com>
Signed-off-by: Eden Reich <eden.reich@gmail.com>
Contributor
|
🎉 This PR is included in version 0.7.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements output format options for YAML and JSON as requested in issue #14.
Changes
Example Usage
Fixes #14
Additionally, I'm taking the opportunity to upgrade all the dependencies.
Generated with Claude Code