comments from review

This commit is contained in:
Ethan Buchman
2017-07-10 13:39:23 -04:00
parent bcde80fc4f
commit 75df0d91ba
3 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -23,7 +23,8 @@ const (
)
// isolate provides a clean setup and returns a copy of RootCmd you can
// modify in the test cases
// modify in the test cases.
// NOTE: it unsets all TM* env variables.
func isolate(cmds ...*cobra.Command) cli.Executable {
os.Unsetenv("TMHOME")
os.Unsetenv("TM_HOME")