dip/vendor/github.com/gobuffalo/packr/v2/packr2/cmd/fix.go
Paul Lecuq 573d8f49e4
Some checks failed
continuous-integration/drone/push Build is failing
updated vendors
2020-08-01 19:02:19 +02:00

24 lines
560 B
Go

package cmd
import (
"fmt"
packr "github.com/gobuffalo/packr/v2"
"github.com/gobuffalo/packr/v2/packr2/cmd/fix"
"github.com/spf13/cobra"
)
// fixCmd represents the info command
var fixCmd = &cobra.Command{
Use: "fix",
Short: fmt.Sprintf("will attempt to fix a application's API to match packr version %s", packr.Version),
RunE: func(cmd *cobra.Command, args []string) error {
return fix.Run()
},
}
func init() {
fixCmd.Flags().BoolVarP(&fix.YesToAll, "y", "", false, "update all without asking for confirmation")
rootCmd.AddCommand(fixCmd)
}