Files
restic/cmd/restic/cmd_repair.go
2025-10-03 18:55:46 +02:00

22 lines
449 B
Go

package main
import (
"github.com/spf13/cobra"
)
func newRepairCommand(globalOptions *GlobalOptions) *cobra.Command {
cmd := &cobra.Command{
Use: "repair",
Short: "Repair the repository",
GroupID: cmdGroupDefault,
DisableAutoGenTag: true,
}
cmd.AddCommand(
newRepairIndexCommand(globalOptions),
newRepairPacksCommand(globalOptions),
newRepairSnapshotsCommand(globalOptions),
)
return cmd
}