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

Method getSources

plugin/studio/testrun/test_run_command.go:325–340  ·  view source on GitHub ↗
(ctx plugin.ExecutionContext)

Source from the content-addressed store, hash-verified

323}
324
325func (c TestRunCommand) getSources(ctx plugin.ExecutionContext) ([]string, error) {
326 sources := c.getStringArrayParameter("source", []string{"."}, ctx.Parameters)
327 result := []string{}
328 for _, source := range sources {
329 source, _ = filepath.Abs(source)
330 fileInfo, err := os.Stat(source)
331 if err != nil {
332 return []string{}, fmt.Errorf("%s not found", studio.DefaultProjectJson)
333 }
334 if fileInfo.IsDir() {
335 source = filepath.Join(source, studio.DefaultProjectJson)
336 }
337 result = append(result, source)
338 }
339 return result, nil
340}
341
342func (c TestRunCommand) getFolder(parameters []plugin.ExecutionParameter) string {
343 folderId := c.getIntParameter("folder-id", 0, parameters)

Callers 1

ExecuteMethod · 0.95

Calls 1

Tested by

no test coverage detected