()
| 262 | } |
| 263 | |
| 264 | func (s *IOStreams) StopPager() { |
| 265 | if s.pagerProcess == nil { |
| 266 | return |
| 267 | } |
| 268 | |
| 269 | // if a pager was started, we're guaranteed to have a WriteCloser |
| 270 | _ = s.Out.(io.WriteCloser).Close() |
| 271 | _, _ = s.pagerProcess.Wait() |
| 272 | s.pagerProcess = nil |
| 273 | } |
| 274 | |
| 275 | func (s *IOStreams) CanPrompt() bool { |
| 276 | if s.neverPrompt { |