Skip to content

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

@feedmeapples feedmeapples requested a review from alexshtin June 17, 2020 16:06
@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