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

Commit

Permalink
dev and new commands use plush now
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Mar 3, 2017
1 parent c0e2285 commit 902065b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions buffalo/cmd/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os/exec"

"github.com/gobuffalo/buffalo/buffalo/cmd/generate"
"github.com/gobuffalo/velvet"
"github.com/gobuffalo/plush"
"github.com/markbates/refresh/refresh"
"github.com/spf13/cobra"
)
Expand Down Expand Up @@ -76,7 +76,7 @@ func startDevServer(ctx context.Context) error {
return err
}
defer f.Close()
t, err := velvet.Render(nRefresh, velvet.NewContextWith(map[string]interface{}{
t, err := plush.Render(nRefresh, plush.NewContextWith(map[string]interface{}{
"name": "buffalo",
}))
if err != nil {
Expand Down
12 changes: 6 additions & 6 deletions buffalo/cmd/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"

"github.com/gobuffalo/envy"
"github.com/gobuffalo/velvet"
"github.com/gobuffalo/plush"
"github.com/markbates/inflect"
"github.com/spf13/cobra"
)
Expand Down Expand Up @@ -105,7 +105,7 @@ func validateInGoPath(name string) error {
if err != nil {
return err
}
t, err := velvet.Render(notInGoWorkspace, velvet.NewContextWith(map[string]interface{}{
t, err := plush.Render(notInGoWorkspace, plush.NewContextWith(map[string]interface{}{
"name": name,
"gopath": gp,
"current": rootPath,
Expand Down Expand Up @@ -184,13 +184,13 @@ func init() {

const notInGoWorkspace = `Oops! It would appear that you are not in your Go Workspace.
Your $GOPATH is set to "{{gopath}}".
Your $GOPATH is set to "<%= gopath %>".
You are currently in "{{current}}".
You are currently in "<%= current %>".
The standard location for putting Go projects is something along the lines of "$GOPATH/src/github.com/{{username}}/{{name}}" (adjust accordingly).
The standard location for putting Go projects is something along the lines of "$GOPATH/src/github.com/<%= username %>/<%= name %>" (adjust accordingly).
We recommend you go to "$GOPATH/src/github.com/{{username}}/" and try "buffalo new {{name}}" again.`
We recommend you go to "$GOPATH/src/github.com/<%= username %>/" and try "buffalo new <%= name %>" again.`

const noGoPath = `You do not have a $GOPATH set. In order to work with Go, you must set up your $GOPATH and your Go Workspace.
Expand Down

0 comments on commit 902065b

Please sign in to comment.