Skip to content

Commit

Permalink
style(form placeholders): Add placeholders for dbt profile details
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenwindflower committed Apr 20, 2024
1 parent c8aa463 commit f1bf806
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion forms.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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
Expand Down

0 comments on commit f1bf806

Please sign in to comment.