We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2678580 + 8c19ee9 commit 192e193Copy full SHA for 192e193
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