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

Method createCacheClearCommand

commandline/command_builder.go:638–649  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

636}
637
638func (b CommandBuilder) createCacheClearCommand() *CommandDefinition {
639 flags := NewFlagBuilder().
640 AddHelpFlag().
641 Build()
642
643 return NewCommand("clear", "Clears the cache", "Clears the cache").
644 WithFlags(flags).
645 WithAction(func(context *CommandExecContext) error {
646 handler := newCacheClearCommandHandler(b.StdOut)
647 return handler.Clear()
648 })
649}
650
651func (b CommandBuilder) createCacheCommand() *CommandDefinition {
652 flags := NewFlagBuilder().

Callers 1

createCacheCommandMethod · 0.95

Calls 8

NewFlagBuilderFunction · 0.85
AddHelpFlagMethod · 0.80
WithActionMethod · 0.80
WithFlagsMethod · 0.80
ClearMethod · 0.80
NewCommandFunction · 0.70
BuildMethod · 0.45

Tested by

no test coverage detected