MCPcopy Create free account
hub / github.com/Driver-C/tryssh / LoadConfig

Function LoadConfig

pkg/config/loader.go:12–14  ·  view source on GitHub ↗

LoadConfig loads the configuration from the default paths.

()

Source from the content-addressed store, hash-verified

10
11// LoadConfig loads the configuration from the default paths.
12func LoadConfig() (*MainConfig, error) {
13 return LoadConfigFromPath(DefaultConfigPath, DefaultKnownHostsPath)
14}
15
16// LoadConfigFromPath loads the configuration from the specified paths,
17// generating a new config file if one does not exist.

Callers 15

NewScpCommandFunction · 0.92
NewUsersCommandFunction · 0.92
NewCachesCommandFunction · 0.92
NewKeysCommandFunction · 0.92
NewPasswordsCommandFunction · 0.92
NewPortsCommandFunction · 0.92
NewUsersCommandFunction · 0.92
NewCachesCommandFunction · 0.92
NewKeysCommandFunction · 0.92
NewPasswordsCommandFunction · 0.92
NewPortsCommandFunction · 0.92
NewPruneCommandFunction · 0.92

Calls 1

LoadConfigFromPathFunction · 0.85

Tested by 1

TestLoadConfigFunction · 0.68