MCPcopy
hub / github.com/cli/cli / CanPrompt

Method CanPrompt

pkg/iostreams/iostreams.go:263–269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261}
262
263func (s *IOStreams) CanPrompt() bool {
264 if s.neverPrompt {
265 return false
266 }
267
268 return s.IsStdinTTY() && s.IsStdoutTTY()
269}
270
271func (s *IOStreams) GetNeverPrompt() bool {
272 return s.neverPrompt

Callers 15

BaseRepoMethod · 0.80
NewCmdCommentFunction · 0.80
NewCmdCreateFunction · 0.80
NewCmdEditFunction · 0.80
NewCmdViewFunction · 0.80
deleteAssetRunFunction · 0.80
deleteRunFunction · 0.80
NewCmdCreateFunction · 0.80
createRunFunction · 0.80
switchRunFunction · 0.80
NewCmdRefreshFunction · 0.80
NewCmdLoginFunction · 0.80

Calls 2

IsStdinTTYMethod · 0.95
IsStdoutTTYMethod · 0.95

Tested by

no test coverage detected