Skip to content

Commit

Permalink
fix: no interactive mode if not a terminal (#2943)
Browse files Browse the repository at this point in the history
fixes: #2854
  • Loading branch information
stuartwdouglas authored Oct 2, 2024
1 parent 8538155 commit 53a0ca0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/terminal/interactive.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ type KongContextBinder func(ctx context.Context, kctx *kong.Context) context.Con

func RunInteractiveConsole(ctx context.Context, k *kong.Kong, binder KongContextBinder, client ftlv1connect.ControllerServiceClient) error {

if !readline.DefaultIsTerminal() {
return nil
}
l, err := readline.NewEx(&readline.Config{
Prompt: interactivePrompt,
InterruptPrompt: "^C",
Expand Down

0 comments on commit 53a0ca0

Please sign in to comment.