Skip to content

Commit 2dc6afc

Browse files
author
Katrina Owen
authored
Merge pull request #565 from exercism/default-workspace
Use the binary name to determine the default workspace
2 parents b67dd86 + 248a90c commit 2dc6afc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/configure.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ You can also override certain default settings to suit your preferences.
3333
if err != nil {
3434
return err
3535
}
36+
if usrCfg.Workspace == "" {
37+
fmt.Println(usrCfg.Home + BinaryName)
38+
}
3639

3740
apiCfg := config.NewEmptyAPIConfig()
3841
err = apiCfg.Load(viperAPIConfig)

0 commit comments

Comments
 (0)