X Tutup
Skip to content

Commit a0b7f37

Browse files
committed
clean up Config interface
1 parent a325db3 commit a0b7f37

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

context/config_file_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ hosts:
5454
`)()
5555
config, err := ParseConfig("filename")
5656
eq(t, err, nil)
57-
_, err = config.configForHost("github.com")
57+
_, err = config.Get("github.com", "user")
5858
eq(t, err, errors.New(`could not find config entry for "github.com"`))
5959
}
6060

context/config_type.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ type Config interface {
1616
Get(string, string) (string, error)
1717
Set(string, string, string) error
1818
Write() error
19-
configForHost(string) (*HostConfig, error)
20-
parseHosts(*yaml.Node) ([]*HostConfig, error)
2119
}
2220

2321
type NotFoundError struct {

0 commit comments

Comments
 (0)
X Tutup