()
| 636 | } |
| 637 | |
| 638 | func (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 | |
| 651 | func (b CommandBuilder) createCacheCommand() *CommandDefinition { |
| 652 | flags := NewFlagBuilder(). |
no test coverage detected