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

Adding flag to sort incident list by field name (with reverse option and multiple fields support) #197

Merged
merged 4 commits into from
Sep 26, 2024

Conversation

mbovo
Copy link
Owner

@mbovo mbovo commented Sep 26, 2024

As per title, this would work like:

pdh inc ls --sort assignee --reverse

In case the field is not found the cli will notice you and print the list of available fields

 pdh inc ls -e --sort unkn --reverse                                
Invalid sort field: unkn
Available fields: id, assignee, title, status, created_at, last_status_change_at, url

brokenpip3
brokenpip3 previously approved these changes Sep 26, 2024
@mbovo mbovo changed the title Adding flag to sort incident list by field name (with reverse option Adding flag to sort incident list by field name (with reverse option and multiple fields support) Sep 26, 2024
brokenpip3
brokenpip3 previously approved these changes Sep 26, 2024
@mbovo mbovo merged commit 13d4208 into main Sep 26, 2024
5 checks passed
@mbovo mbovo deleted the feat/sort branch September 26, 2024 11:08
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