We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 698958f + aa461f0 commit fa98694Copy full SHA for fa98694
commands/create.go
@@ -40,7 +40,8 @@ var (
40
Usage: fmt.Sprintf(
41
"Driver to create machine with.",
42
),
43
- Value: "none",
+ Value: "none",
44
+ EnvVar: "MACHINE_DRIVER",
45
},
46
cli.StringFlag{
47
Name: "engine-install-url",
@@ -290,8 +291,12 @@ func cmdCreateOuter(c CommandLine, api libmachine.API) error {
290
291
// We didn't recognize the driver name.
292
driverName := flagHackLookup("--driver")
293
if driverName == "" {
- c.ShowHelp()
294
- return nil // ?
+ //TODO: Check Environment have to include flagHackLookup function.
295
+ driverName = os.Getenv("MACHINE_DRIVER")
296
+ if driverName == "" {
297
+ c.ShowHelp()
298
+ return nil // ?
299
+ }
300
}
301
302
// TODO: Fix hacky JSON solution
0 commit comments