MCPcopy Index your code
hub / github.com/devspace-sh/devspace / Run

Method Run

helper/cmd/sync/downstream.go:38–54  ·  view source on GitHub ↗

Run runs the command logic

(cobraCmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

36
37// Run runs the command logic
38func (cmd *DownstreamCmd) Run(cobraCmd *cobra.Command, args []string) error {
39 absolutePath, err := ensurePath(args)
40 if err != nil {
41 return err
42 }
43
44 return server.StartDownstreamServer(os.Stdin, os.Stdout, &server.DownstreamOptions{
45 RemotePath: absolutePath,
46 ExcludePaths: cmd.Exclude,
47
48 Throttle: cmd.Throttle,
49 Polling: cmd.Polling,
50 ExitOnClose: true,
51 NoRecursiveWatch: !cmd.RecursiveWatch,
52 Ping: true,
53 })
54}

Callers

nothing calls this directly

Calls 2

StartDownstreamServerFunction · 0.92
ensurePathFunction · 0.85

Tested by

no test coverage detected