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

Method StopPager

pkg/iostreams/iostreams.go:264–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262}
263
264func (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
275func (s *IOStreams) CanPrompt() bool {
276 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