Esempio n. 1
0
func init() {
	flags := createCmd.Flags()
	flagparser.AddServiceFlags(flags)
	flags.String("mode", "replicated", "one of replicated, global")
	flags.StringSlice("secret", nil, "add a secret from swarm")
}
Esempio n. 2
0
func init() {
	flags := createCmd.Flags()
	flagparser.AddServiceFlags(flags)
	flags.String("mode", "replicated", "one of replicated, global")
}
Esempio n. 3
0
func init() {
	updateCmd.Flags().StringSlice("add-secret", nil, "add a new secret from swarm")
	updateCmd.Flags().StringSlice("rm-secret", nil, "removes a secret from the service")
	updateCmd.Flags().Bool("force", false, "force tasks to restart even if nothing has changed")
	flagparser.AddServiceFlags(updateCmd.Flags())
}
Esempio n. 4
0
func init() {
	flagparser.AddServiceFlags(updateCmd.Flags())
}