mirror of
https://github.com/restic/restic.git
synced 2025-05-19 00:08:20 +00:00
22 lines
382 B
Go
22 lines
382 B
Go
package main
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func newRepairCommand() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "repair",
|
|
Short: "Repair the repository",
|
|
GroupID: cmdGroupDefault,
|
|
DisableAutoGenTag: true,
|
|
}
|
|
|
|
cmd.AddCommand(
|
|
newRepairIndexCommand(),
|
|
newRepairPacksCommand(),
|
|
newRepairSnapshotsCommand(),
|
|
)
|
|
return cmd
|
|
}
|