MCPcopy
hub / github.com/wal-g/wal-g / ExtractDeleteRetainAfterModifierFromArgs

Function ExtractDeleteRetainAfterModifierFromArgs

internal/delete_handler.go:562–569  ·  view source on GitHub ↗

ExtractDeleteRetainAfterModifierFromArgs extracts the args for the "delete retain --after" command

(args []string)

Source from the content-addressed store, hash-verified

560
561// ExtractDeleteRetainAfterModifierFromArgs extracts the args for the "delete retain --after" command
562func 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
572func ExtractDeleteEverythingModifierFromArgs(args []string) int {

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected