Resolve "Build an abstract client for output"
General MR
Summary
This MR introduces an abstract client for output handling in bbctl. The implementation follows a similar pattern factory pattern and prints to stdout. The output client is designed to support multiple output formats: human-readable,JSON, and YAML.
the client usage is fairly straight forward
- Create Client: Select one of 3 formats: "text", "json", "yaml" and include stream
- Use the Output method to write to stdout in the selected format
client := output.NewOutputClient(format,streams)
err := client.Output(data)
Relevant logs/screenshots
(Include any relevant logs/screenshots)
Linked Issue
Upgrade Notices
N/A
Closes #131 (closed)
Edited by Manuel Ucles