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

change list command output from tabulate to rich tables #359

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Haris-Ali007
Copy link

Issue resolved: I have updated the list bash output by replacing the tabulate table with rich tables.

File updated: cli/_print_utils.py

The output looks like this:
image

@CLA-Mercedes-Benz
Copy link

CLA-Mercedes-Benz commented Nov 3, 2024

CLA assistant check
All committers have signed the CLA.

@@ -4,7 +4,8 @@
from typing import Any, Callable, Dict, List, Optional, Union

import markdownify
from tabulate import tabulate # TODO: switch to rich tables
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tabulate dependency not removed from pyproject.toml

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let me update that.

Copy link
Author

@Haris-Ali007 Haris-Ali007 Nov 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot remove tabulate from dependency some other files are using it. This PR was specifically for list command output. I can update rest as well and then remove it.

odxtools/cli/_print_utils.py Show resolved Hide resolved
Copy link
Collaborator

@andlaus andlaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

except for the fact that the CI system complains about this, this looks good to me. (replacing the tabulate module for browse and compare would be nice, too...)

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.

4 participants