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

Method usageExample

commandline/parameter_formatter.go:69–79  ·  view source on GitHub ↗
(parameter parser.Parameter)

Source from the content-addressed store, hash-verified

67}
68
69func (f parameterFormatter) usageExample(parameter parser.Parameter) string {
70 parameters := f.collectUsageParameters(parameter, "")
71 sort.Strings(parameters)
72
73 builder := strings.Builder{}
74 for _, value := range parameters {
75 f.writeSeparator(&builder, "; ")
76 builder.WriteString(value)
77 }
78 return builder.String()
79}
80
81func (f parameterFormatter) collectUsageParameters(parameter parser.Parameter, prefix string) []string {
82 result := []string{}

Callers 2

UsageExampleMethod · 0.95
descriptionMethod · 0.95

Calls 3

writeSeparatorMethod · 0.95
StringMethod · 0.80

Tested by

no test coverage detected