mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
b45581b786
Signed-off-by: Daniel Nephin <dnephin@docker.com>
11 lines
347 B
Go
11 lines
347 B
Go
package stack
|
|
|
|
import "github.com/spf13/pflag"
|
|
|
|
func addComposefileFlag(opt *string, flags *pflag.FlagSet) {
|
|
flags.StringVar(opt, "compose-file", "", "Path to a Compose file")
|
|
}
|
|
|
|
func addRegistryAuthFlag(opt *bool, flags *pflag.FlagSet) {
|
|
flags.BoolVar(opt, "with-registry-auth", false, "Send registry authentication details to Swarm agents")
|
|
}
|