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

Immediate follow #595

Merged
merged 2 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Upon updating Pueue and restarting the daemon, the previous state will be wiped,
- Added Windows service on Windows to allow a true daemon experience. [#344](https://github.com/Nukesor/pueue/issues/344) [#567](https://github.com/Nukesor/pueue/pull/567)
- Add `queued_count` and `stashed_count` to callback template variables. This allows users to fire callbacks when whole groups are finished. [#578](https://github.com/Nukesor/pueue/issues/578)
- Add new subcommand to set or unset environment variables for tasks. [#503](https://github.com/Nukesor/pueue/issues/503)
- Add `add --follow` flag that may be called in combination with `--immediate` [#592](https://github.com/Nukesor/pueue/issues/592)

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ lint:
just ensure-command cargo-nextest
cargo fmt --all -- --check
taplo format --check
cargo clippy --tests --workspace -- -D warnings
cargo clippy --tests --workspace --all -- -D warnings

format:
just ensure-command taplo
Expand Down
9 changes: 9 additions & 0 deletions pueue/src/client/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@
#[arg(name = "immediate", short, long, conflicts_with = "stashed")]
start_immediately: bool,

/// Immediately follow a task, if it's started with --immediate.
#[arg(
name = "follow",
long,
requires = "immediate",
conflicts_with = "print_task_id"
)]
follow: bool,

Check warning on line 50 in pueue/src/client/cli.rs

View check run for this annotation

Codecov / codecov/patch

pueue/src/client/cli.rs#L50

Added line #L50 was not covered by tests

/// Create the task in Stashed state.
///
/// Useful to avoid immediate execution if the queue is empty.
Expand Down
Loading
Loading