-
Notifications
You must be signed in to change notification settings - Fork 138
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
Consistent user experience across tink-cli list command -q #403
Comments
Apologies, I should have submitted a proposal first. I'm already in progress to make it consistent across the CLI. |
Well, no need for a proposal for that and no need to apologise :) but just an issue is fine or even a PR with a bit more time to handle that, anyway, overall the feature is good and needed so thank you for that! We just have to port it to all the other commands so people will have a more friendly experience using the CLI |
## Description The PR introduces a new flag --quiet or -q to only display IDs while listing hardware and workflow. ``` / # tink hardware list +--------------------------------------+-------------------+-------------+-----------+ | ID | MAC ADDRESS | IP ADDRESS | HOSTNAME | +--------------------------------------+-------------------+-------------+-----------+ | 0eba0bf8-3772-4b4a-ab9f-6ebe93b90a95 | 08:00:27:00:00:01 | 192.168.1.5 | server001 | | 1eba0bf8-3772-4b4a-ab9f-6ebe93b90a95 | 08:00:27:00:00:02 | 192.168.1.5 | server001 | +--------------------------------------+-------------------+-------------+-----------+ / # tink hardware list -q 0eba0bf8-3772-4b4a-ab9f-6ebe93b90a95 1eba0bf8-3772-4b4a-ab9f-6ebe93b90a95 / # tink workflow list +--------------------------------------+--------------------------------------+-----------------------------------+-------------------------------+-------------------------------+ | WORKFLOW ID | TEMPLATE ID | HARDWARE DEVICE | CREATED AT | UPDATED AT | +--------------------------------------+--------------------------------------+-----------------------------------+-------------------------------+-------------------------------+ | c465b4b2-48e6-11eb-a673-0242ac120004 | aabad754-48e6-11eb-a673-0242ac120004 | {"device_1": "08:00:27:00:00:02"} | 2020-12-28 08:29:13 +0000 UTC | 2020-12-28 08:29:13 +0000 UTC | | c7812ec3-48e6-11eb-a673-0242ac120004 | aabad754-48e6-11eb-a673-0242ac120004 | {"device_1": "08:00:27:00:00:02"} | 2020-12-28 08:29:19 +0000 UTC | 2020-12-28 08:29:19 +0000 UTC | +--------------------------------------+--------------------------------------+-----------------------------------+-------------------------------+-------------------------------+ / # tink workflow list -q c465b4b2-48e6-11eb-a673-0242ac120004 c7812ec3-48e6-11eb-a673-0242ac120004 ``` ## Why is this needed Fixes: #403 ## How Has This Been Tested? Tested manually over the vagrant setup. ## Checklist: I have: - [ ] updated the documentation and/or roadmap (if required) - [ ] added unit or e2e tests - [x] provided instructions on how to upgrade
#402
@gauravgahlot I think changes in user experience should be discussed together first, and second, we have to try to be as consistent as possible in the CLI. (we are pretty bad with that)
Can you add the same change you made here for the other resources?
Thanks
The text was updated successfully, but these errors were encountered: