MCPcopy Create free account
hub / github.com/jetkvm/kvm / rpcSendCustomCommand

Function rpcSendCustomCommand

jsonrpc.go:893–900  ·  view source on GitHub ↗
(command string)

Source from the content-addressed store, hash-verified

891}
892
893func rpcSendCustomCommand(command string) error {
894 logger.Debug().Str("Command", command).Msg("JSONRPC: Sending custom serial command")
895 err := sendCustomCommand(command)
896 if err != nil {
897 return fmt.Errorf("failed to send custom command in jsonrpc: %w", err)
898 }
899 return nil
900}
901
902func rpcGetSerialSettings() (SerialSettings, error) {
903 return getSerialSettings()

Callers

nothing calls this directly

Calls 3

sendCustomCommandFunction · 0.85
DebugMethod · 0.80
ErrorfMethod · 0.80

Tested by

no test coverage detected