@@ -110,9 +110,8 @@ func main() {
110110 // Set up our legacy outputer
111111 setPrinterColors (outFlags )
112112
113- isInteractive := strings .ToLower (os .Getenv (constants .NonInteractiveEnvVarName )) != "true" && out .Config ().Interactive
114113 // Run our main command logic, which is logic that defers to the error handling logic below
115- err = run (os .Args , isInteractive , cfg , out )
114+ err = run (os .Args , cfg , out )
116115 if err != nil {
117116 exitCode , err = runbits_errors .ParseUserFacing (err )
118117 if err != nil {
@@ -121,7 +120,7 @@ func main() {
121120 }
122121}
123122
124- func run (args []string , isInteractive bool , cfg * config.Instance , out output.Outputer ) (rerr error ) {
123+ func run (args []string , cfg * config.Instance , out output.Outputer ) (rerr error ) {
125124 defer profile .Measure ("main:run" , time .Now ())
126125
127126 // Set up profiling
@@ -224,10 +223,7 @@ func run(args []string, isInteractive bool, cfg *config.Instance, out output.Out
224223 }()
225224
226225 // Set up prompter
227- prompter := prompt .New (an )
228- if ! isInteractive {
229- prompter .SetInteractive (false )
230- }
226+ prompter := prompt .New (out , an )
231227
232228 // Set up conditional, which accesses a lot of primer data
233229 sshell := subshell .New (cfg )
0 commit comments