MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / JobInputCommand

Method JobInputCommand

pkg/jobmanager/mainserverconn.go:124–134  ·  view source on GitHub ↗
(ctx context.Context, data wshrpc.CommandJobInputData)

Source from the content-addressed store, hash-verified

122}
123
124func (msc *MainServerConn) JobInputCommand(ctx context.Context, data wshrpc.CommandJobInputData) error {
125 if !msc.PeerAuthenticated.Load() {
126 return fmt.Errorf("not authenticated")
127 }
128 if !WshCmdJobManager.IsJobStarted() {
129 return fmt.Errorf("job not started")
130 }
131
132 WshCmdJobManager.InputQueue.QueueItem(data.InputSessionId, data.SeqNum, data)
133 return nil
134}

Callers

nothing calls this directly

Calls 2

IsJobStartedMethod · 0.80
QueueItemMethod · 0.80

Tested by

no test coverage detected