Use go-gh config package (#5771)

This commit is contained in:
Sam Coe 2022-06-23 12:50:04 +01:00 committed by GitHub
parent 5227af0c99
commit cacff4ad6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
82 changed files with 1379 additions and 3334 deletions

View file

@ -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()