mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2024-11-01 03:04:12 +01:00
20 lines
340 B
Go
20 lines
340 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/cupcakearmy/autorestic/internal/bins"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var installCmd = &cobra.Command{
|
|
Use: "install",
|
|
Short: "Install restic if missing",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
err := bins.InstallRestic()
|
|
CheckErr(err)
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(installCmd)
|
|
}
|