mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
f3743f90ec
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.
19 lines
397 B
Go
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:
|
|
}
|
|
}
|