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

Method CanPrompt

pkg/iostreams/iostreams.go:275–281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

273}
274
275func (s *IOStreams) CanPrompt() bool {
276 if s.neverPrompt {
277 return false
278 }
279
280 return s.IsStdinTTY() && s.IsStdoutTTY()
281}
282
283func (s *IOStreams) GetNeverPrompt() bool {
284 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