checking in some config stuff

This commit is contained in:
2020-10-07 11:25:56 -04:00
parent 4b912a8dae
commit d3a5f039c1
5 changed files with 349 additions and 67 deletions

View File

@@ -1,5 +1,9 @@
package config
import (
`fmt`
)
type sshBool bool
func (b sshBool) Str() string {
@@ -8,3 +12,13 @@ func (b sshBool) Str() string {
}
return "no"
}
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
}