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

Method Get

plugin/module_manager.go:80–92  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

78}
79
80func (m ModuleManager) Get(name string) (string, error) {
81 definition := m.getDefinition(name)
82 path := ""
83 err := resiliency.Retry(func(attempt int) error {
84 var err error
85 path, err = m.getModule(definition)
86 if err != nil {
87 return resiliency.Retryable(err)
88 }
89 return nil
90 })
91 return path, err
92}
93
94func (m ModuleManager) getDefinition(name string) ModuleDefinition {
95 definition, ok := AvailableModules[name]

Callers 2

getUipcliPathMethod · 0.95
getDotnetPathMethod · 0.95

Calls 4

getDefinitionMethod · 0.95
getModuleMethod · 0.95
RetryFunction · 0.92
RetryableFunction · 0.92

Tested by

no test coverage detected