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

Method CanPrompt

pkg/iostreams/iostreams.go:276–282  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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