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") }
func init() { flags := createCmd.Flags() flagparser.AddServiceFlags(flags) flags.String("mode", "replicated", "one of replicated, global") }
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()) }
func init() { flagparser.AddServiceFlags(updateCmd.Flags()) }