MCPcopy Create free account
hub / github.com/DBCDK/morph / GetPathsToPush

Function GetPathsToPush

nix/nix.go:465–474  ·  view source on GitHub ↗
(host Host, resultPath string)

Source from the content-addressed store, hash-verified

463}
464
465func GetPathsToPush(host Host, resultPath string) (paths []string, err error) {
466 path1, err := GetNixSystemPath(host, resultPath)
467 if err != nil {
468 return paths, err
469 }
470
471 paths = append(paths, path1)
472
473 return paths, nil
474}
475
476func Push(ctx *ssh.SSHContext, host Host, paths ...string) (err error) {
477 utils.ValidateEnvironment("ssh")

Callers 1

pushPathsFunction · 0.92

Calls 1

GetNixSystemPathFunction · 0.85

Tested by

no test coverage detected