MCPcopy
hub / github.com/cli/cli / StopPager

Method StopPager

pkg/iostreams/iostreams.go:252–261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250}
251
252func (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
263func (s *IOStreams) CanPrompt() bool {
264 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