Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user to specify a format for stdout #242

Closed
nehanene15 opened this issue Apr 28, 2021 · 1 comment
Closed

Allow user to specify a format for stdout #242

nehanene15 opened this issue Apr 28, 2021 · 1 comment
Assignees
Labels
priority: p1 High priority. Fix may be included in the next release. Release Next release candidate type: feature request 'Nice-to-have' improvement, new feature or different behavior or design.

Comments

@nehanene15
Copy link
Collaborator

Currently, the default stdout output is not readable due to the large amount of fields we print. The user should be able to specify a --format flag similar to the gcloud format flag.

We can also trim down the amount of fields we output to stdout if they are user specified parameters.

@nehanene15 nehanene15 added the priority: p1 High priority. Fix may be included in the next release. label Apr 28, 2021
@yogeshtewari
Copy link
Contributor

Updated code to take in --format flag and pretty print formatted results on the console. Default format is tabular grid.

@yogeshtewari yogeshtewari linked a pull request Jun 29, 2021 that will close this issue
@freedomofnet freedomofnet added the type: feature request 'Nice-to-have' improvement, new feature or different behavior or design. label Jul 14, 2021
@nehanene15 nehanene15 added the Release Next release candidate label Jul 15, 2021
yogeshtewari pushed a commit that referenced this issue Jul 30, 2021
…her test cases (#242)"

This reverts commit 76fbea5.

adding default parameter value for format
yogeshtewari pushed a commit that referenced this issue Jul 30, 2021
yogeshtewari pushed a commit that referenced this issue Aug 2, 2021
yogeshtewari pushed a commit that referenced this issue Aug 2, 2021
yogeshtewari added a commit that referenced this issue Aug 3, 2021
* feat: Allow user to specify a format for stdout (#242)

* feat: Allow user to specify a format for stdout, tabulate dependency (#242)

* feat: Allow user to specify a format for stdout, added for other test cases (#242)

* Revert "feat: Allow user to specify a format for stdout, added for other test cases (#242)"

This reverts commit 76fbea5.

adding default parameter value for format

* feat: Allow user to specify a format for stdout, added default parameter for format (#242)

* feat: Allow user to specify a format for stdout, format for text result handler (#242)

* feat: Allow user to specify a format for stdout, linting fix (#242)

* feat: Allow user to specify a format for stdout, files reformatted with black (#242)

* Revert "feat: Allow user to specify a format for stdout, files reformatted with black (#242)"

This reverts commit f730ac9.

* feat: Allow user to specify a format for stdout, files reformatted with black version 19 (#242)

* feat: Allow user to specify a format for stdout, updated readme and format short form (#242)

* feat: Allow user to specify a format for stdout, updated help for format (#242)

* Update README.md

Co-authored-by: Neha Nene <[email protected]>

* feat: Allow user to specify a format for stdout, default format is table (#242)

Co-authored-by: Yogesh Tewari <[email protected]>
Co-authored-by: Neha Nene <[email protected]>
yogeshtewari added a commit that referenced this issue Aug 4, 2021
yogeshtewari pushed a commit that referenced this issue Aug 10, 2021
yogeshtewari added a commit that referenced this issue Aug 25, 2021
* feat: Allow user to specify a format for stdout(#242)

* feat: Allow user to specify a format for stdout. Test case fixes(#242)

* feat: Allow user to specify a format for stdout. Test case fixes(#242)

* feat: Allow user to specify a format for stdout. Default format and Text result handler test case fixes(#242)

* feat: Trim the number of columns we output to stdout (#294)

* feat: Trim the number of columns we output to stdout (#294)

* feat: Trim the number of columns we output to stdout (#294)

Co-authored-by: Yogesh Tewari <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p1 High priority. Fix may be included in the next release. Release Next release candidate type: feature request 'Nice-to-have' improvement, new feature or different behavior or design.
Projects
None yet
4 participants