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

Function getSyncCommands

pkg/devspace/services/sync/controller.go:543–561  ·  view source on GitHub ↗
(cmd *latest.SyncExecCommand)

Source from the content-addressed store, hash-verified

541}
542
543func getSyncCommands(cmd *latest.SyncExecCommand) (string, []string, string, []string) {
544 if cmd.Command != "" {
545 return cmd.Command, cmd.Args, cmd.Command, cmd.Args
546 }
547
548 var (
549 onFileChange = cmd.OnFileChange
550 onDirCreate = cmd.OnDirCreate
551 )
552
553 if onFileChange == nil {
554 onFileChange = &latest.SyncCommand{}
555 }
556 if onDirCreate == nil {
557 onDirCreate = &latest.SyncCommand{}
558 }
559
560 return onFileChange.Command, onFileChange.Args, onDirCreate.Command, onDirCreate.Args
561}
562
563func parseExcludeFile(path string) ([]string, error) {
564 reader, err := os.Open(path)

Callers 1

initClientMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected