fmt
This commit is contained in:
parent
a68962368d
commit
61fcefffe5
@ -118,7 +118,7 @@ func main() {
|
|||||||
if err := r.Record(r); err != nil {
|
if err := r.Record(r); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
fmt.Fprintln(style.Output,prefix(style.Green.Bold("Your project was successfully added.")))
|
fmt.Fprintln(style.Output, prefix(style.Green.Bold("Your project was successfully added.")))
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
Before: before,
|
Before: before,
|
||||||
@ -790,7 +790,7 @@ func main() {
|
|||||||
if err := r.Record(r); err != nil {
|
if err := r.Record(r); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
fmt.Fprintln(style.Output,prefix(style.Green.Bold("Your configuration was successful.")))
|
fmt.Fprintln(style.Output, prefix(style.Green.Bold("Your configuration was successful.")))
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
Before: before,
|
Before: before,
|
||||||
@ -810,7 +810,7 @@ func main() {
|
|||||||
if err := r.Record(r); err != nil {
|
if err := r.Record(r); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
fmt.Fprintln(style.Output,prefix(style.Green.Bold("Your project was successfully removed.")))
|
fmt.Fprintln(style.Output, prefix(style.Green.Bold("Your project was successfully removed.")))
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
Before: before,
|
Before: before,
|
||||||
@ -834,7 +834,7 @@ func main() {
|
|||||||
if err := r.Settings.Remove(directory); err != nil {
|
if err := r.Settings.Remove(directory); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
fmt.Fprintln(style.Output,prefix(style.Green.Bold("Realize folder successfully removed.")))
|
fmt.Fprintln(style.Output, prefix(style.Green.Bold("Realize folder successfully removed.")))
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
Before: before,
|
Before: before,
|
||||||
|
@ -6,9 +6,9 @@ import (
|
|||||||
"github.com/tockins/realize/style"
|
"github.com/tockins/realize/style"
|
||||||
cli "gopkg.in/urfave/cli.v2"
|
cli "gopkg.in/urfave/cli.v2"
|
||||||
"os"
|
"os"
|
||||||
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
"path/filepath"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Run launches the toolchain for each project
|
// Run launches the toolchain for each project
|
||||||
@ -69,7 +69,7 @@ func (h *Blueprint) Run(p *cli.Context) error {
|
|||||||
|
|
||||||
// base path of the project
|
// base path of the project
|
||||||
wd, err := os.Getwd()
|
wd, err := os.Getwd()
|
||||||
if err != nil{
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if element.path == "." || element.path == "/" {
|
if element.path == "." || element.path == "/" {
|
||||||
|
Loading…
Reference in New Issue
Block a user