You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
340 B
20 lines
340 B
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)
|
|
}
|