yorkie-team / yorkie

Yorkie is a document store for collaborative applications.
https://yorkie.dev
Apache License 2.0
771 stars 143 forks source link

Provide global output flag for setting output format in CLI commands #955

Open hackerwins opened 1 month ago

hackerwins commented 1 month ago

Description:

Recently, we added the output flag to the version command in the CLI to specify the output format ('', yaml, json). This format allows users to configure their system workflows when invoking the CLI, making it easier for the system to recognize the data.

https://github.com/yorkie-team/yorkie/pull/938

Currently, the output flag is specific to the version command, but it can be expanded to serve the purpose of specifying the output format for all CLI commands.

Why:

To provide a consistent and convenient way for users to set the output format for all CLI commands, enhancing the usability of the CLI tool.