2020-09-27 03:23:58 -04:00
|
|
|
package config
|
|
|
|
|
2020-10-07 11:25:56 -04:00
|
|
|
import (
|
|
|
|
`fmt`
|
|
|
|
)
|
|
|
|
|
2020-09-27 03:23:58 -04:00
|
|
|
type sshBool bool
|
|
|
|
|
|
|
|
func (b sshBool) Str() string {
|
|
|
|
if b {
|
|
|
|
return "yes"
|
|
|
|
}
|
|
|
|
return "no"
|
|
|
|
}
|
2020-10-07 11:25:56 -04:00
|
|
|
|
|
|
|
type sshEnv map[string]string
|
|
|
|
|
|
|
|
func (e sshEnv) Str() string {
|
|
|
|
var s string
|
|
|
|
for k, v := range e {
|
|
|
|
s += fmt.Sprintf("%v=%v", k, v)
|
|
|
|
}
|
|
|
|
return s
|
|
|
|
}
|