github.com/LukasHeimann/cloudfoundrycli/v8@v8.4.4/actor/v7pushaction/set_default_bits_path_for_push_plan.go (about) 1 package v7pushaction 2 3 import ( 4 "os" 5 6 log "github.com/sirupsen/logrus" 7 ) 8 9 func SetDefaultBitsPathForPushPlan(pushPlan PushPlan, overrides FlagOverrides) (PushPlan, error) { 10 if pushPlan.BitsPath == "" && pushPlan.DropletPath == "" && pushPlan.DockerImageCredentials.Path == "" { 11 var err error 12 pushPlan.BitsPath, err = os.Getwd() 13 log.WithField("path", pushPlan.BitsPath).Debug("using current directory for bits path") 14 if err != nil { 15 return pushPlan, err 16 } 17 } 18 return pushPlan, nil 19 }