MCPcopy Create free account
hub / github.com/apache/openwhisk-cli / NewWskWithPath

Function NewWskWithPath

tests/src/integration/common/wsk.go:39–49  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

37}
38
39func NewWskWithPath(path string) *Wsk {
40 var dep Wsk
41 dep.Path = cmd
42 dep.Arg = []string{arg}
43 dep.Dir = path
44 pi := whisk.PropertiesImp{
45 OsPackage: whisk.OSPackageImp{},
46 }
47 dep.Wskprops, _ = whisk.GetDefaultWskProp(pi)
48 return &dep
49}
50
51func (wsk *Wsk) Exists() bool {
52 _, err := os.Stat(wsk.Dir + "/" + wsk.Path)

Callers 1

NewWskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected