From a0b7f37935cb996b48ed3523f0efe2f7c78ab49b Mon Sep 17 00:00:00 2001 From: vilmibm Date: Fri, 17 Apr 2020 15:21:44 -0500 Subject: [PATCH] clean up Config interface --- context/config_file_test.go | 2 +- context/config_type.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/context/config_file_test.go b/context/config_file_test.go index 92f042a10..239727cc8 100644 --- a/context/config_file_test.go +++ b/context/config_file_test.go @@ -54,7 +54,7 @@ hosts: `)() config, err := ParseConfig("filename") eq(t, err, nil) - _, err = config.configForHost("github.com") + _, err = config.Get("github.com", "user") eq(t, err, errors.New(`could not find config entry for "github.com"`)) } diff --git a/context/config_type.go b/context/config_type.go index 91741048c..4eb6e136e 100644 --- a/context/config_type.go +++ b/context/config_type.go @@ -16,8 +16,6 @@ type Config interface { Get(string, string) (string, error) Set(string, string, string) error Write() error - configForHost(string) (*HostConfig, error) - parseHosts(*yaml.Node) ([]*HostConfig, error) } type NotFoundError struct {