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

[Alloy] Add list/search of designs. #392

Merged
merged 1 commit into from
Feb 11, 2025
Merged

[Alloy] Add list/search of designs. #392

merged 1 commit into from
Feb 11, 2025

Conversation

dracos
Copy link
Member

@dracos dracos commented Feb 10, 2025

And pretty print tables (add new module so that it can wrap tables to terminal width).

Sample output:

$ bin/alloy/inspect-designs bristol_alloy designs_bWCSCStreetCleansingJobList_5e20812fca315012d09501ea --search Code --value LBI
+--------------------------+-------------------------+------+-------------------------+----------+
| ID                       | Title                   | Code | Title                   | Subtitle |
+--------------------------+-------------------------+------+-------------------------+----------+
| 5e217a3dca315003e098059a | Litter Bin Installation | LBI  | Litter Bin Installation | LBI      |
+--------------------------+-------------------------+------+-------------------------+----------+

Or:

$ bin/alloy/inspect-designs bristol_alloy designs_bWCSCStreetCleansingJobList_5e20812fca315012d09501ea --list
+--------------------------+--------------------------+------+--------------------------+----------+
| ID                       | Title                    | Code | Title                    | Subtitle |
+--------------------------+--------------------------+------+--------------------------+----------+
| 5e21782dca315003e09804a2 | Blood, Excrement, Vomit  | BEV  | Blood, Excrement, Vomit  | BEV      |
| 5e2178baca31500cc0a2b4c9 | Bike                     | BIKE | Bike                     | BIKE     |
| 5e2179a3ca315012d0956667 | Dog Fouling              | DOG  | Dog Fouling              | DOG      |
[...]
+--------------------------+--------------------------+------+--------------------------+----------+

@dracos dracos requested a review from chrismytton February 10, 2025 17:02
Copy link
Member

@chrismytton chrismytton left a comment

Choose a reason for hiding this comment

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

Nice! Term::Table is a big improvement for the output formatting 👍

@dracos dracos merged commit 2b33e07 into master Feb 11, 2025
8 checks passed
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.

2 participants