Skip to content

Commit

Permalink
Remove Kopia "snapshot gc" command wrapper (#1982)
Browse files Browse the repository at this point in the history
* Remove SnapshotGC Wrapper

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

* Remove SnapshotGC Wrapper

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>

---------

Signed-off-by: Rajat Gupta <rajat.gupta@veeam.com>
  • Loading branch information
r4rajat committed Apr 1, 2023
1 parent 22e52b1 commit 4b4b6ec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion pkg/kopia/command/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const (
createSubCommand = "create"
deleteSubCommand = "delete"
expireSubCommand = "expire"
gcSubCommand = "gc"
infoSubCommand = "info"
kopiaCommand = "kopia"
listSubCommand = "list"
Expand Down
12 changes: 0 additions & 12 deletions pkg/kopia/command/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,6 @@ func SnapshotExpire(cmdArgs SnapshotExpireCommandArgs) []string {
return stringSliceCommand(args)
}

type SnapshotGCCommandArgs struct {
*CommandArgs
}

// SnapshotGC returns the kopia command for issuing kopia snapshot gc
func SnapshotGC(cmdArgs SnapshotGCCommandArgs) []string {
args := commonArgs(cmdArgs.CommandArgs, false)
args = args.AppendLoggable(snapshotSubCommand, gcSubCommand, deleteFlag)

return stringSliceCommand(args)
}

type SnapListAllCommandArgs struct {
*CommandArgs
}
Expand Down

0 comments on commit 4b4b6ec

Please sign in to comment.