default moniker to the host name (Refs #920)

This commit is contained in:
Anton Kaliaev
2017-12-07 12:21:13 -06:00
parent 14ccc8bc4c
commit 5ff0bb2100
6 changed files with 55 additions and 38 deletions

View File

@@ -32,6 +32,9 @@ func isolate(cmds ...*cobra.Command) cli.Executable {
if err := os.Unsetenv("TM_HOME"); err != nil {
panic(err)
}
if err := os.RemoveAll(defaultRoot); err != nil {
panic(err)
}
viper.Reset()
config = cfg.DefaultConfig()