()
| 250 | } |
| 251 | |
| 252 | func (s *IOStreams) StopPager() { |
| 253 | if s.pagerProcess == nil { |
| 254 | return |
| 255 | } |
| 256 | |
| 257 | // if a pager was started, we're guaranteed to have a WriteCloser |
| 258 | _ = s.Out.(io.WriteCloser).Close() |
| 259 | _, _ = s.pagerProcess.Wait() |
| 260 | s.pagerProcess = nil |
| 261 | } |
| 262 | |
| 263 | func (s *IOStreams) CanPrompt() bool { |
| 264 | if s.neverPrompt { |