(path string)
| 37 | } |
| 38 | |
| 39 | func 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 | |
| 51 | func (wsk *Wsk) Exists() bool { |
| 52 | _, err := os.Stat(wsk.Dir + "/" + wsk.Path) |