Skip to content

Commit

Permalink
fix: secret set pw prompt (#3288)
Browse files Browse the repository at this point in the history
fixes: #3231
  • Loading branch information
stuartwdouglas authored Nov 1, 2024
1 parent 5e2b31c commit de978ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/cli/cmd_secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
ftlv1 "github.com/TBD54566975/ftl/backend/protos/xyz/block/ftl/v1"
cf "github.com/TBD54566975/ftl/internal/configuration"
"github.com/TBD54566975/ftl/internal/projectconfig"
"github.com/TBD54566975/ftl/internal/terminal"
)

type secretCmd struct {
Expand Down Expand Up @@ -116,6 +117,8 @@ type secretSetCmd struct {
}

func (s *secretSetCmd) Run(ctx context.Context, scmd *secretCmd, projConfig projectconfig.Config) error {
// We don't need the terminal status display, and it does not currently handle partial line writes
terminal.FromContext(ctx).Close()
// Prompt for a secret if stdin is a terminal, otherwise read from stdin.
ctx, adminClient, err := setUpAdminClient(ctx, projConfig)
if err != nil {
Expand Down

0 comments on commit de978ba

Please sign in to comment.