MCPcopy Create free account
hub / github.com/containerd/nerdctl / pullAction

Function pullAction

cmd/nerdctl/compose/compose_pull.go:40–68  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

38}
39
40func 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}

Callers

nothing calls this directly

Calls 5

ProcessRootCmdFlagsFunction · 0.92
NewClientFunction · 0.92
NewFunction · 0.92
getComposeOptionsFunction · 0.85
PullMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…