buffalo/cmd/fix/runner.go
func Run() error {
	fmt.Printf("! This updater will attempt to update your application to Buffalo version: %s\n", runtime.Version)
	if !ask("Do you wish to continue?") {
		fmt.Println("~~~ cancelling update ~~~")
		return nil
	}

	r := &Runner{
		App:      meta.New("."),
		Warnings: []string{},
	}

	defer func() {
		if len(r.Warnings) == 0 {
			return
		}

		fmt.Println("\n\n----------------------------")
		fmt.Printf("!!! (%d) Warnings Were Found !!!\n\n", len(r.Warnings))
		for _, w := range r.Warnings {
			fmt.Printf("[WARNING]: %s\n", w)
		}
	}()

	for _, c := range checks {
		if err := c(r); err != nil {
			return err
		}
	}
	return nil
}
func Run() error {
	fmt.Printf("! This updater will attempt to update your application to Buffalo version: %s\n", runtime.Version)
	if !ask("Do you wish to continue?") {
		fmt.Println("~~~ cancelling update ~~~")
		return nil
	}

	r := &Runner{
		App:      meta.New("."),
		Warnings: []string{},
	}

	defer func() {
		if len(r.Warnings) == 0 {
			return
		}

		fmt.Println("\n\n----------------------------")
		fmt.Printf("!!! (%d) Warnings Were Found !!!\n\n", len(r.Warnings))
		for _, w := range r.Warnings {
			fmt.Printf("[WARNING]: %s\n", w)
		}
	}()

	for _, c := range checks {
		if err := c(r); err != nil {
			return err
		}
	}
	return nil
}
func Run ( ) error { fmt . Printf ( " \n " , runtime . Version ) if ! ask ( " " ) { fmt . Println ( " " ) return nil } r := & Runner { App : meta . New ( " " ) , Warnings : [ ] string { } , } defer func ( ) { if len ( r . Warnings ) == 0 { return } fmt . Println ( " \n \n " ) fmt . Printf ( " \n \n " , len ( r . Warnings ) ) for _ , w := range r . Warnings { fmt . Printf ( " \n " , w ) } } ( ) for _ , c := range checks { if err := c ( r ) ; err != nil { return err } } return nil }
// Run all compatible checks
Run all compatible checks