Skip to content

Commit

Permalink
Merge pull request #595 from Nukesor/immediate-follow
Browse files Browse the repository at this point in the history
Immediate follow
  • Loading branch information
Nukesor authored Feb 4, 2025
2 parents 2ad711e + ccd3cb2 commit d2c116e
Show file tree
Hide file tree
Showing 19 changed files with 222 additions and 127 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,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 @@ pub enum SubCommand {
#[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,

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

0 comments on commit d2c116e

Please sign in to comment.