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

Method createCategoryCommand

commandline/command_builder.go:444–452  ·  view source on GitHub ↗
(operation parser.Operation)

Source from the content-addressed store, hash-verified

442}
443
444func (b CommandBuilder) createCategoryCommand(operation parser.Operation) *CommandDefinition {
445 flags := NewFlagBuilder().
446 AddHelpFlag().
447 AddServiceVersionFlag(true).
448 Build()
449
450 return NewCommand(operation.Category.Name, operation.Category.Summary, operation.Category.Description).
451 WithFlags(flags)
452}
453
454func (b CommandBuilder) createServiceCommandCategory(operation parser.Operation, categories map[string]*CommandDefinition) (bool, *CommandDefinition) {
455 isNewCategory := false

Callers 1

Calls 6

NewFlagBuilderFunction · 0.85
AddServiceVersionFlagMethod · 0.80
AddHelpFlagMethod · 0.80
WithFlagsMethod · 0.80
NewCommandFunction · 0.70
BuildMethod · 0.45

Tested by

no test coverage detected