From beb12d5ec27b800cafe196183ab30fe19cc128ad Mon Sep 17 00:00:00 2001 From: jk <47693+sectore@users.noreply.github.com> Date: Sun, 13 Apr 2025 19:19:46 +0200 Subject: [PATCH] just: run with args --- justfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/justfile b/justfile index bbb7db2..450baee 100644 --- a/justfile +++ b/justfile @@ -42,6 +42,13 @@ alias r := run run: cargo run +alias ra := run-args + +# run app with arguments. It expects arguments as a string (e.g. "-c 5:00"). +[group('dev')] +run-args args: + cargo run -- {{ args }} + alias rs := run-sound # run app while sound feature is enabled. It expects a path to a sound file. @@ -49,6 +56,13 @@ alias rs := run-sound run-sound path: cargo run --features sound -- --sound={{ path }} +alias rsa := run-sound-args + +# run app while sound feature is enabled by adding a path to a sound file and other arguments as string (e.g. "-c 5:00"). +[group('dev')] +run-sound-args path args: + cargo run --features sound -- --sound={{ path }} {{ args }} + # demos alias dp := demo-pomodoro