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

Method supervisor

cli/proc_tool_adapter.go:30–36  ·  view source on GitHub ↗

supervisor returns the session supervisor, creating it on first use.

()

Source from the content-addressed store, hash-verified

28
29// supervisor returns the session supervisor, creating it on first use.
30func (a *procToolAdapter) supervisor() *proc.Supervisor {
31 a.cli.procSupOnce.Do(func() {
32 validator := agent.NewCommandValidator(a.cli.logger)
33 a.cli.procSup = proc.NewSupervisor(validator.ValidateCommand, a.cli.logger)
34 })
35 return a.cli.procSup
36}
37
38// Start implements plugins.ProcAdapter.
39func (a *procToolAdapter) Start(command, dir string) (string, error) {

Callers 6

StartMethod · 0.95
StatusMethod · 0.95
LogsMethod · 0.95
StopMethod · 0.95
RemoveMethod · 0.95
ListMethod · 0.95

Calls 3

NewCommandValidatorFunction · 0.92
NewSupervisorFunction · 0.92
DoMethod · 0.80

Tested by

no test coverage detected