MCPcopy
hub / github.com/docker/docker-agent / Batch

Method Batch

pkg/tui/cmdbatch/batch.go:54–63  ·  view source on GitHub ↗

Batch returns a batched command, or nil if no commands were added.

()

Source from the content-addressed store, hash-verified

52
53// Batch returns a batched command, or nil if no commands were added.
54func (b *Builder) Batch() tea.Cmd {
55 switch len(b.cmds) {
56 case 0:
57 return nil
58 case 1:
59 return b.cmds[0]
60 default:
61 return tea.Batch(b.cmds...)
62 }
63}
64
65// Len returns the number of commands in the batch.
66func (b *Builder) Len() int {

Callers 15

handleRegenerateTitleMethod · 0.80
handleToggleSplitDiffMethod · 0.80
handleRestartToolsetMethod · 0.80
applyThemeChangedMethod · 0.80
handleAgentCommandMethod · 0.80
handleAttachFileMethod · 0.80
handleStartSpeakMethod · 0.80
handleStopSpeakMethod · 0.80
InitMethod · 0.80
initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected