qrz/vendor/github.com/gobuffalo/packr/v2/packr2/cmd/fix.go
Paul Lecuq 36c5d6f2ed
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
large change on qrz
- web service with json support
- web page
- cron service to update database infos
2020-05-09 19:09:27 +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)
}