You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes#16312
We intend to modify the behavior of the CLI handler based on the
specified output format. However, the output format is currently only
accessible within the `OutputFormatter` structure. Therefore, I propose
extending `OutputFormatter` by introducing a public `FormatID` method,
which will allow us to retrieve the format identifier and use it to
customize the behavior of the CLI handler accordingly.
The expected returning value should be (on stdout):
{"workspaces":[],"count":0}
End user runs:
coder list -o json
Sees:
No workspaces found! Create one: coder create <name>
(This is printed to stderr)
This would match the API function and is a valid json.
The text was updated successfully, but these errors were encountered: