MCPcopy
hub / github.com/dagger/container-use / Add

Method Add

environment/note.go:14–19  ·  view source on GitHub ↗
(format string, a ...any)

Source from the content-addressed store, hash-verified

12}
13
14func (n *Notes) Add(format string, a ...any) {
15 n.mu.Lock()
16 defer n.mu.Unlock()
17
18 n.items = append(n.items, fmt.Sprintf(format, a...))
19}
20
21func (n *Notes) AddCommand(command string, exitCode int, stdout, stderr string) {
22 msg := fmt.Sprintf("$ %s", strings.TrimSpace(command))

Callers 6

AddCommandMethod · 0.95
FileWriteMethod · 0.80
FileEditMethod · 0.80
FileDeleteMethod · 0.80
AddServiceMethod · 0.80

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by 1