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

Port in status #70

Merged
merged 2 commits into from
Aug 18, 2024
Merged

Port in status #70

merged 2 commits into from
Aug 18, 2024

Conversation

holesch
Copy link
Owner

@holesch holesch commented Aug 18, 2024

Either read the busid from sysfs, when the USB device is attached or
calculate the possible busids, when the device is not attached.

When adding new columns after status, one has to account for ANSI escape
sequences when aligning the table, because the status column values are
printed red or green. At this point maintaining this logic is not worth
it and I'd rather add another dependency to the project.

Use python-tabulate to format the table. This has the added benefit,
that the width of the table is never more than necessary.
Either read the busid from sysfs, when the USB device is attached or
calculate the possible busids, when the device is not attached.
@holesch holesch merged commit 9e3c94f into master Aug 18, 2024
9 checks passed
@holesch holesch deleted the port-in-status branch August 22, 2024 22:10
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.

1 participant