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