MCPcopy Create free account
hub / github.com/diillson/chatcli / getCriticalInput

Method getCriticalInput

cli/agent_command_blocks.go:922–933  ·  view source on GitHub ↗

getCriticalInput obtém entrada para decisões críticas

(prompt string)

Source from the content-addressed store, hash-verified

920
921// getCriticalInput obtém entrada para decisões críticas
922func (a *AgentMode) getCriticalInput(prompt string) string {
923 if runtime.GOOS != "windows" {
924 cmd := exec.Command(sttyPath, "sane")
925 cmd.Stdin = os.Stdin
926 _ = cmd.Run()
927 }
928
929 fmt.Print("\n")
930 fmt.Print(prompt)
931
932 return a.readLine()
933}
934
935// askUserIfInteractive pergunta se comando deve ser interativo
936func (a *AgentMode) askUserIfInteractive(cmd string, contextInfo agent.CommandContextInfo) bool {

Callers 2

runSingleCommandMethod · 0.95
askUserIfInteractiveMethod · 0.95

Calls 2

readLineMethod · 0.95
RunMethod · 0.65

Tested by

no test coverage detected