Skip to content

Commit

Permalink
Merge pull request kubernetes#1792 from r2d4/docker-env-helper
Browse files Browse the repository at this point in the history
Add 'none' shell for docker-env output
  • Loading branch information
r2d4 committed Aug 7, 2017
2 parents 2deea5f + a02541d commit 55fb939
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cmd/minikube/cmd/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ const (
bashUnsetPfx = "unset "
bashUnsetSfx = "\n"
bashUnsetDelim = ""

nonePfx = ""
noneSfx = "\n"
noneDelim = "="
)

var usageHintMap = map[string]string{
Expand Down Expand Up @@ -204,6 +208,11 @@ func shellCfgSet(api libmachine.API) (*ShellConfig, error) {
shellCfg.Prefix = emacsSetPfx
shellCfg.Suffix = emacsSetSfx
shellCfg.Delimiter = emacsSetDelim
case "none":
shellCfg.Prefix = nonePfx
shellCfg.Suffix = noneSfx
shellCfg.Delimiter = noneDelim
shellCfg.UsageHint = ""
default:
shellCfg.Prefix = bashSetPfx
shellCfg.Suffix = bashSetSfx
Expand Down Expand Up @@ -245,6 +254,11 @@ func shellCfgUnset() (*ShellConfig, error) {
shellCfg.Prefix = emacsUnsetPfx
shellCfg.Suffix = emacsUnsetSfx
shellCfg.Delimiter = emacsUnsetDelim
case "none":
shellCfg.Prefix = nonePfx
shellCfg.Suffix = noneSfx
shellCfg.Delimiter = noneDelim
shellCfg.UsageHint = ""
default:
shellCfg.Prefix = bashUnsetPfx
shellCfg.Suffix = bashUnsetSfx
Expand Down

0 comments on commit 55fb939

Please sign in to comment.