From ef0eeab8b97dc0b92787e7f1d91b2cba82c232a6 Mon Sep 17 00:00:00 2001 From: Pratik Chowdhury <28534575+pratikpc@users.noreply.github.com> Date: Mon, 20 May 2024 19:34:23 +0530 Subject: [PATCH] build(justfile): add format support Allows for formatting of source code when running just all Using the [fmt naming from Just's own](https://github.com/casey/just/blob/d15dad66c9d1cd342b99d0de2d2e99a610ee2fd8/justfile#L39) --- justfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/justfile b/justfile index 194f949..d0b12a2 100644 --- a/justfile +++ b/justfile @@ -3,10 +3,15 @@ _default: # run doc, clippy, and test recipies all *args: + just fmt {{args}} just doc {{args}} just clippy {{args}} just test {{args}} +# Format all code +fmt *args: + cargo fmt --all {{args}} + # run tests on all feature combinations test *args: cargo hack test --feature-powerset {{args}}