From eed7d360c872d48069fa431cf9ef44d123185b25 Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Mon, 23 Feb 2026 08:17:09 +0100 Subject: [PATCH] Add default value argument to input prompts in add recipe --- .just/users.just | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.just/users.just b/.just/users.just index 0643355..e798cc3 100644 --- a/.just/users.just +++ b/.just/users.just @@ -49,10 +49,10 @@ add: jq -r 'to_entries | map(.key)[]' <<< "$data" \ | gum choose --header 'Which organisation to save to?' --select-if-one ` - username=`input 'user name'` - email=`input 'email'` - first_name=`input 'first name'` - last_name=`input 'last name'` + username=`input 'user name' ''` + email=`input 'email' ''` + first_name=`input 'first name' ''` + last_name=`input 'last name' ''` user_exists=`jq --arg 'org' "$org" --arg 'username' "$username" '.[$org][$username]? | . != null' <<< "$data"`