We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d838966 commit 8c19ee9Copy full SHA for 8c19ee9
1 file changed
cmd/root/api.go
@@ -24,6 +24,10 @@ func NewAPICmd() *cobra.Command {
24
Args: cobra.ExactArgs(1),
25
RunE: func(cmd *cobra.Command, args []string) error {
26
telemetry.TrackCommand("api", args)
27
+
28
+ // Make sure no question is ever asked to the user in api mode.
29
+ os.Stdin = nil
30
31
return runHTTP(cmd, args)
32
},
33
}
0 commit comments