mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-10-15 19:42:06 +00:00
support list/map/scalar for on and needs
Signed-off-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
parent
ff5f860cee
commit
a846112993
33 changed files with 2451 additions and 1690 deletions
25
vendor/github.com/howeyc/gopass/terminal.go
generated
vendored
25
vendor/github.com/howeyc/gopass/terminal.go
generated
vendored
|
@ -1,25 +0,0 @@
|
|||
// +build !solaris
|
||||
|
||||
package gopass
|
||||
|
||||
import "golang.org/x/crypto/ssh/terminal"
|
||||
|
||||
type terminalState struct {
|
||||
state *terminal.State
|
||||
}
|
||||
|
||||
func isTerminal(fd uintptr) bool {
|
||||
return terminal.IsTerminal(int(fd))
|
||||
}
|
||||
|
||||
func makeRaw(fd uintptr) (*terminalState, error) {
|
||||
state, err := terminal.MakeRaw(int(fd))
|
||||
|
||||
return &terminalState{
|
||||
state: state,
|
||||
}, err
|
||||
}
|
||||
|
||||
func restore(fd uintptr, oldState *terminalState) error {
|
||||
return terminal.Restore(int(fd), oldState.state)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue