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