Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine
execute_command
function for printing aligned tabbed tables (#…
…1379) The commit adds type hints to parameters and return type of the `execute_command` function in util.py script. It also introduces a change in printing logic to handle tabs. Further, new test cases are added in test_util.py script to confirm this behavior. ### Before ``` 10:31:54 >: Cluster Admin: true 10:31:54 >: Organization: N/A 10:31:54 >: Creator: N/A 10:31:54 >: Email: N/A 10:31:54 >: AccountNumber: N/A 10:31:54 >: Created: 2024-04-12T08:31:54Z 10:31:54 >: Expiration: 2024-04-13T20:31:53Z ``` ### After ``` 20:02:16 >: Cluster Admin: true 20:02:16 >: Organization: N/A 20:02:16 >: Creator: N/A 20:02:16 >: Email: N/A 20:02:16 >: AccountNumber: N/A 20:02:16 >: Created: 2024-04-12T18:02:16Z 20:02:16 >: Expiration: 2024-04-14T06:02:15Z ``` Signed-off-by: Jiri Daněk <jdanek@redhat.com>
- Loading branch information