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

Method loadAllDefinitions

commandline/command_builder.go:696–712  ·  view source on GitHub ↗
(serviceVersion string)

Source from the content-addressed store, hash-verified

694}
695
696func (b CommandBuilder) loadAllDefinitions(serviceVersion string) ([]parser.Definition, error) {
697 all, err := b.DefinitionProvider.Index(serviceVersion)
698 if err != nil {
699 return nil, err
700 }
701 definitions := []parser.Definition{}
702 for _, d := range all {
703 definition, err := b.DefinitionProvider.Load(d.Name, serviceVersion)
704 if err != nil {
705 return nil, err
706 }
707 if definition != nil {
708 definitions = append(definitions, *definition)
709 }
710 }
711 return definitions, nil
712}
713
714func (b CommandBuilder) loadAutocompleteDefinitions(args []string, serviceVersion string) ([]parser.Definition, error) {
715 if len(args) <= 2 {

Callers 1

loadDefinitionsMethod · 0.95

Calls 2

IndexMethod · 0.80
LoadMethod · 0.45

Tested by

no test coverage detected