Skip to content

Commit

Permalink
Merge pull request #8531 from jtzwu/master
Browse files Browse the repository at this point in the history
Do not output usage hint when shell=none.
  • Loading branch information
tstromberg authored Jun 23, 2020
2 parents 126b8cf + e1a7b22 commit f52a682
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions pkg/minikube/shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,7 @@ REM @FOR /f "tokens=*" %%i IN ('%s') DO @%%i
unsetSuffix: "\n",
unsetDelimiter: "",
usageHint: func(s ...interface{}) string {
return fmt.Sprintf(`
# %s
# eval $(%s)
`, s...)
return ""
},
},
}
Expand Down
3 changes: 1 addition & 2 deletions pkg/minikube/shell/shell_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ func TestGenerateUsageHint(t *testing.T) {
;; (with-temp-buffer (shell-command "bar" (current-buffer)) (eval-buffer))`},
{EnvConfig{"fish"}, `# foo
# bar | source`},
{EnvConfig{"none"}, `# foo
# eval $(bar)`},
{EnvConfig{"none"}, ``},
}
for _, tc := range testCases {
tc := tc
Expand Down

0 comments on commit f52a682

Please sign in to comment.