ExtractDeleteRetainAfterModifierFromArgs extracts the args for the "delete retain --after" command
(args []string)
| 560 | |
| 561 | // ExtractDeleteRetainAfterModifierFromArgs extracts the args for the "delete retain --after" command |
| 562 | func ExtractDeleteRetainAfterModifierFromArgs(args []string) (int, string, string) { |
| 563 | if len(args) == 2 { |
| 564 | return NoDeleteModifier, args[0], args[1] |
| 565 | } else if args[0] == StringModifiers[0] { |
| 566 | return FullDeleteModifier, args[1], args[2] |
| 567 | } |
| 568 | return FindFullDeleteModifier, args[1], args[2] |
| 569 | } |
| 570 | |
| 571 | // ExtractDeleteEverythingModifierFromArgs extracts the args for the "delete everything" command |
| 572 | func ExtractDeleteEverythingModifierFromArgs(args []string) int { |
no outgoing calls
no test coverage detected