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

Method parseArgument

commandline/command_builder.go:769–778  ·  view source on GitHub ↗
(args []string, name string)

Source from the content-addressed store, hash-verified

767}
768
769func (b CommandBuilder) parseArgument(args []string, name string) string {
770 for i, arg := range args {
771 if strings.TrimSpace(arg) == "--"+name {
772 if len(args) > i+1 {
773 return strings.TrimSpace(args[i+1])
774 }
775 }
776 }
777 return ""
778}
779
780func (b CommandBuilder) serviceVersionFromProfile(profile string) string {
781 config := b.ConfigProvider.Config(profile)

Callers 1

CreateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected