Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed: consistent user experience across tink-cli list command -q (ti…
…nkerbell#404) ## 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: tinkerbell#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
- Loading branch information