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

Add table-view support for CLI list commands #444

Merged
merged 5 commits into from
Jun 18, 2020
Merged

Add table-view support for CLI list commands #444

merged 5 commits into from
Jun 18, 2020

Conversation

feedmeapples
Copy link
Contributor

What changed?
Added Table view to CLI list util in addition to JSON view. Use --print_json to switch between them. Default is Table view.

Why?
Allows to switch between table and json view for CLI list commands.

How did you test it?
Ran tests and a list command that utilizes the new util. Example:
./tctl admin shard list_tasks --shard_id 3 --task_type 3 --pagesize 4 --more --print_json --username <db_flags>

Potential risks
Smaller risk of not properly handling a field of a row since the table view constructs the table dynamically using reflection

tools/cli/util.go Outdated Show resolved Hide resolved
tools/cli/util.go Outdated Show resolved Hide resolved
@feedmeapples feedmeapples merged commit 6789325 into temporalio:master Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants