-
-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide global output flag for all cli commands (#1021)
Provide a consistent way for users to set the output format globally across all CLI commands. Implement JSON and YAML options for the output flag. Update validation for user input options to be global. Apply new output formats to: context ls, project create/ls/update, document ls, and history ls commands.
- Loading branch information
1 parent
2a29c7d
commit d8414e1
Showing
10 changed files
with
305 additions
and
120 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package main | ||
|
||
const ( | ||
DefaultOutput = "" // DefaultOutput is for table format | ||
YamlOutput = "yaml" // YamlOutput is for yaml format | ||
JSONOutput = "json" // JSONOutput is for json format | ||
) |
Oops, something went wrong.