(cmd *cobra.Command, args []string)
| 37 | } |
| 38 | |
| 39 | func pushAction(cmd *cobra.Command, args []string) error { |
| 40 | globalOptions, err := helpers.ProcessRootCmdFlags(cmd) |
| 41 | if err != nil { |
| 42 | return err |
| 43 | } |
| 44 | |
| 45 | client, ctx, cancel, err := clientutil.NewClient(cmd.Context(), globalOptions.Namespace, globalOptions.Address) |
| 46 | if err != nil { |
| 47 | return err |
| 48 | } |
| 49 | defer cancel() |
| 50 | options, err := getComposeOptions(cmd, globalOptions.DebugFull, globalOptions.Experimental) |
| 51 | if err != nil { |
| 52 | return err |
| 53 | } |
| 54 | c, err := compose.New(client, globalOptions, options, cmd.OutOrStdout(), cmd.ErrOrStderr()) |
| 55 | if err != nil { |
| 56 | return err |
| 57 | } |
| 58 | |
| 59 | po := composer.PushOptions{} |
| 60 | return c.Push(ctx, po, args) |
| 61 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…