From e3ff59bd9239eccbede0bb52ab0672799184ad71 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Wed, 2 Mar 2016 22:27:59 +0100 Subject: [PATCH] Export flags for consumers of libmachine Signed-off-by: David Gageot --- commands/commands.go | 2 +- commands/create.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/commands.go b/commands/commands.go index 5a8afbe007..5452de24f1 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -216,7 +216,7 @@ var Commands = []cli.Command{ }, }, { - Flags: sharedCreateFlags, + Flags: SharedCreateFlags, Name: "create", Usage: "Create a machine", Description: fmt.Sprintf("Run '%s create --driver name' to include the create flags for that driver in the help text.", os.Args[0]), diff --git a/commands/create.go b/commands/create.go index 812dbeab08..e4e88559ae 100644 --- a/commands/create.go +++ b/commands/create.go @@ -34,7 +34,7 @@ var ( ) var ( - sharedCreateFlags = []cli.Flag{ + SharedCreateFlags = []cli.Flag{ cli.StringFlag{ Name: "driver, d", Usage: fmt.Sprintf( @@ -416,7 +416,7 @@ func convertMcnFlagsToCliFlags(mcnFlags []mcnflag.Flag) ([]cli.Flag, error) { } func addDriverFlagsToCommand(cliFlags []cli.Flag, cmd *cli.Command) *cli.Command { - cmd.Flags = append(sharedCreateFlags, cliFlags...) + cmd.Flags = append(SharedCreateFlags, cliFlags...) cmd.SkipFlagParsing = false cmd.Action = runCommand(cmdCreateInner) sort.Sort(ByFlagName(cmd.Flags))