waveterm/pkg/service/userinputservice/userinputservice.go
Sylvie Crowe f3743f90ec
User Input (#119)
Port the User Input feature from the previous version of the app. This
is currently being used to verify a few different prompts for ssh.
2024-07-18 15:21:33 -07:00

19 lines
397 B
Go

// Copyright 2024, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
package userinputservice
import (
"github.com/wavetermdev/thenextwave/pkg/userinput"
)
type UserInputService struct {
}
func (uis *UserInputService) SendUserInputResponse(response *userinput.UserInputResponse) {
select {
case userinput.MainUserInputHandler.Channels[response.RequestId] <- response:
default:
}
}