MCPcopy Create free account
hub / github.com/exercism/cli / NewConfig

Function NewConfig

config/config.go:33–45  ·  view source on GitHub ↗

NewConfig provides a configuration with default values.

()

Source from the content-addressed store, hash-verified

31
32// NewConfig provides a configuration with default values.
33func NewConfig() Config {
34 home := userHome()
35 dir := Dir()
36
37 return Config{
38 OS: runtime.GOOS,
39 Dir: Dir(),
40 Home: home,
41 DefaultBaseURL: defaultBaseURL,
42 DefaultDirName: DefaultDirName,
43 Persister: FilePersister{Dir: dir},
44 }
45}
46
47// SetDefaultDirName configures the default directory name based on the name of the binary.
48func SetDefaultDirName(binaryName string) {

Callers 5

workspace.goFile · 0.92
submit.goFile · 0.92
troubleshoot.goFile · 0.92
configure.goFile · 0.92
download.goFile · 0.92

Calls 2

userHomeFunction · 0.85
DirFunction · 0.85

Tested by

no test coverage detected