Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PBM-1466 - Remove kingpin dependency from pbm cli #1077

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cmd/pbm/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ func deleteBackup(
return nil, errors.New("either --name or --older-than should be set")
}
if d.name != "" && d.olderThan != "" {
return nil, errors.New("cannot use --name and --older-then at the same command")
return nil, errors.New("cannot use --name and --older-than at the same command")
}
if d.bcpType != "" && d.olderThan == "" {
return nil, errors.New("cannot use --type without --older-then")
return nil, errors.New("cannot use --type without --older-than")
}
if !d.dryRun {
err := checkForAnotherOperation(ctx, pbm)
Expand Down Expand Up @@ -174,7 +174,7 @@ func deletePITR(
return nil, errors.New("either --older-than or --all should be set")
}
if d.olderThan != "" && d.all {
return nil, errors.New("cannot use --older-then and --all at the same command")
return nil, errors.New("cannot use --older-than and --all at the same command")
}
if !d.dryRun {
err := checkForAnotherOperation(ctx, pbm)
Expand All @@ -190,7 +190,7 @@ func deletePITR(
var err error
until, err = parseOlderThan(d.olderThan)
if err != nil {
return nil, errors.Wrap(err, "parse --older-then")
return nil, errors.Wrap(err, "parse --older-than")
}

now := time.Now().UTC()
Expand Down
Loading
Loading