fix path
This commit is contained in:
parent
44e9f19d15
commit
395ac02944
6
cmd.go
6
cmd.go
|
@ -57,9 +57,13 @@ func (r *realize) clean() error {
|
||||||
|
|
||||||
// Add a new project
|
// Add a new project
|
||||||
func (r *realize) add(p *cli.Context) error {
|
func (r *realize) add(p *cli.Context) error {
|
||||||
|
path, err := filepath.Abs(p.String("path"))
|
||||||
|
if err != nil{
|
||||||
|
return err
|
||||||
|
}
|
||||||
project := Project{
|
project := Project{
|
||||||
Name: filepath.Base(filepath.Clean(p.String("path"))),
|
Name: filepath.Base(filepath.Clean(p.String("path"))),
|
||||||
Path: filepath.Clean(p.String("path")),
|
Path: path,
|
||||||
Cmds: Cmds{
|
Cmds: Cmds{
|
||||||
Vet: Cmd{
|
Vet: Cmd{
|
||||||
Status: p.Bool("vet"),
|
Status: p.Bool("vet"),
|
||||||
|
|
Loading…
Reference in New Issue