MCPcopy Create free account
hub / github.com/UiPath/uipathcli / Initialize

Method Initialize

plugin/studio/uipcli.go:23–39  ·  view source on GitHub ↗
(targetFramework TargetFramework)

Source from the content-addressed store, hash-verified

21}
22
23func (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
41func (c *Uipcli) Execute(args ...string) (process.ExecCmd, error) {
42 args = append(c.args, args...)

Callers 4

executeMethod · 0.95
prepareExecutionMethod · 0.95
executeMethod · 0.95
executeMethod · 0.95

Calls 2

getUipcliPathMethod · 0.95
getDotnetPathMethod · 0.95

Tested by

no test coverage detected