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

[Feature] Add pueue group --json flag #430

Closed
Nukesor opened this issue Apr 14, 2023 · 2 comments · Fixed by #431
Closed

[Feature] Add pueue group --json flag #430

Nukesor opened this issue Apr 14, 2023 · 2 comments · Fixed by #431
Labels
t: Feature A new feature that needs implementation

Comments

@Nukesor
Copy link
Owner

Nukesor commented Apr 14, 2023

The idea is to add a --json flag to the pueue group subcommand, so it's easier to do scripting with groups.

The usecase in #428 seems to make extensive use of the group feature to sort tasks.
Groups that no longer have any active tasks should then be removed.

Since there's currently no easy way to get a list of all groups, this should be exposed via an --json command.

@Nukesor Nukesor added the t: Feature A new feature that needs implementation label Apr 15, 2023
@Nukesor Nukesor mentioned this issue Apr 29, 2023
@Nukesor
Copy link
Owner Author

Nukesor commented Apr 29, 2023

Ping @allencho1222

Could you take a look whether the linked MR works for you :)

git clone git@github.com:Nukesor/pueue
cd pueue
git switch group-json
cargo run --bin pueue -- group --json

@allencho1222
Copy link

Hi, @Nukesor

It works correctly.

I appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t: Feature A new feature that needs implementation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants