(targetFramework TargetFramework)
| 21 | } |
| 22 | |
| 23 | func (c *Uipcli) Initialize(targetFramework TargetFramework) error { |
| 24 | uipcliPath, err := c.getUipcliPath(targetFramework) |
| 25 | if err != nil { |
| 26 | return err |
| 27 | } |
| 28 | c.path = uipcliPath |
| 29 | |
| 30 | if filepath.Ext(c.path) == ".dll" { |
| 31 | dotnetPath, err := c.getDotnetPath() |
| 32 | if err != nil { |
| 33 | return err |
| 34 | } |
| 35 | c.path = dotnetPath |
| 36 | c.args = []string{uipcliPath} |
| 37 | } |
| 38 | return nil |
| 39 | } |
| 40 | |
| 41 | func (c *Uipcli) Execute(args ...string) (process.ExecCmd, error) { |
| 42 | args = append(c.args, args...) |
no test coverage detected