Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

renamed "buffalo update" to "buffalo fix" to match "go fix". #1192

Merged
merged 4 commits into from
Jul 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions buffalo/cmd/fix.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package cmd

import (
"fmt"

"github.com/gobuffalo/buffalo/buffalo/cmd/fix"
"github.com/gobuffalo/buffalo/runtime"
"github.com/spf13/cobra"
)

// fixCmd represents the info command
var fixCmd = &cobra.Command{
Use: "fix",
Aliases: []string{"update"},
Short: fmt.Sprintf("will attempt to fix a Buffalo application's API to match version %s", runtime.Version),
RunE: func(cmd *cobra.Command, args []string) error {
return fix.Run()
},
}

func init() {
decorate("fix", RootCmd)
decorate("update", RootCmd)
RootCmd.AddCommand(fixCmd)
}
2 changes: 1 addition & 1 deletion buffalo/cmd/updater/dep.go → buffalo/cmd/fix/dep.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package updater
package fix

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package updater
package fix

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion buffalo/cmd/updater/updater.go → buffalo/cmd/fix/fix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package updater
package fix

import (
"bufio"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package updater
package fix

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion buffalo/cmd/updater/npm.go → buffalo/cmd/fix/npm.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package updater
package fix

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package updater
package fix

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package updater
package fix

import (
"bytes"
Expand Down
23 changes: 0 additions & 23 deletions buffalo/cmd/update.go

This file was deleted.

76 changes: 0 additions & 76 deletions go.mod

This file was deleted.