config flag fixed

This commit is contained in:
alessio 2016-08-22 13:45:42 +02:00
parent a0aace6733
commit 55ce5f2be4
2 changed files with 2 additions and 3 deletions

View File

@ -70,7 +70,7 @@ func main() {
&cli.BoolFlag{Name: "run", Usage: "Disable go run"},
&cli.BoolFlag{Name: "bin", Usage: "Disable go install"},
&cli.BoolFlag{Name: "fmt", Usage: "Disable gofmt"},
&cli.BoolFlag{Name: "config", Usage: "If there is a config file with a project for the current directory take that configuration"},
&cli.BoolFlag{Name: "config", Value: false, Usage: "If there is a config file with a project for the current directory take that configuration"},
},
Action: func(p *cli.Context) error {
y := r.New(p)

View File

@ -45,7 +45,6 @@ func (h *Config) Fast(params *cli.Context) error {
fast := h.Projects[0]
// Takes the values from config if wd path match someone else
if params.Bool("config") {
fmt.Println(params.Bool("config"))
if err := h.Read(); err == nil {
for _, val := range h.Projects {
if fast.Path == val.Path {