Use go-gh config package (#5771)
This commit is contained in:
parent
5227af0c99
commit
cacff4ad6d
82 changed files with 1379 additions and 3334 deletions
|
|
@ -22,19 +22,14 @@ func (c tinyConfig) Get(host, key string) (string, error) {
|
|||
return c[fmt.Sprintf("%s:%s", host, key)], nil
|
||||
}
|
||||
|
||||
func (c tinyConfig) Set(host string, key string, value string) error {
|
||||
func (c tinyConfig) Set(host string, key string, value string) {
|
||||
c[fmt.Sprintf("%s:%s", host, key)] = value
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c tinyConfig) Write() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c tinyConfig) WriteHosts() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func TestLogin_ssh(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
ios, _, stdout, stderr := iostreams.Test()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue