MCPcopy Create free account
hub / github.com/cli/cli / StopPager

Method StopPager

pkg/iostreams/iostreams.go:265–274  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263}
264
265func (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
276func (s *IOStreams) CanPrompt() bool {
277 if s.neverPrompt {

Callers 15

listRunFunction · 0.80
viewRunFunction · 0.80
listRunFunction · 0.80
listRunFunction · 0.80
viewRunFunction · 0.80
listRunFunction · 0.80
printLogsFunction · 0.80
listRunFunction · 0.80
followLogsFunction · 0.80
commitsRunFunction · 0.80
SearchIssuesFunction · 0.80
reposRunFunction · 0.80

Calls 2

CloseMethod · 0.65
WaitMethod · 0.65

Tested by 1

TestIOStreams_pagerFunction · 0.64