From f1bf806502a13f8f84ac9bbf8058767752c767ab Mon Sep 17 00:00:00 2001 From: gwen windflower Date: Sat, 20 Apr 2024 10:23:28 -0500 Subject: [PATCH] style(form placeholders): Add placeholders for dbt profile details --- forms.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/forms.go b/forms.go index 48e5871..61652d0 100644 --- a/forms.go +++ b/forms.go @@ -102,7 +102,8 @@ _See README for warehouse-specific requirements_ huh.NewGroup( huh.NewSelect[string](). Title("Choose a dbt profile:"). - Options(getProfileOptions(ps)...), + Options(getProfileOptions(ps)...). + Value(&dfr.DbtProfileName), huh.NewInput(). Title("Which 'output' in that profile do you want to use?"). Value(&dfr.DbtProfileOutput). @@ -111,10 +112,12 @@ _See README for warehouse-specific requirements_ huh.NewInput(). Title("What schema/dataset do you want to generate?"). Value(&dfr.Schema). + Placeholder("raw"). Validate(not_empty), huh.NewInput(). Title("What project/database is that schema/dataset in?"). Value(&dfr.Schema). + Placeholder("jaffle_shop"). Validate(not_empty), ).WithHideFunc(func() bool { return !dfr.UseDbtProfile