From abf96569e04c3f8025591a5ee6b5a7786f43f004 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Mon, 20 Mar 2023 15:05:19 +0200 Subject: [PATCH] Add extra_args support to install-service justfile command It's now possible to do: `just install-service prometheus -l host.example.com` --- justfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 3b5c4de33..f50b5217f 100644 --- a/justfile +++ b/justfile @@ -15,8 +15,8 @@ lint: install-all *extra_args: (run-tags "install-all,ensure-matrix-users-created,start" extra_args) # Runs installation tasks for a single service -install-service service: - just --justfile {{ justfile() }} run --tags=install-{{ service }},start-group --extra-vars=group={{ service }} +install-service service *extra_args: + just --justfile {{ justfile() }} run --tags=install-{{ service }},start-group --extra-vars=group={{ service }} {{ extra_args }} # Runs the playbook with --tags=setup-all,ensure-matrix-users-created,start and optional arguments setup-all *extra_args: (run-tags "setup-all,ensure-matrix-users-created,start" extra_args)