diff --git a/cobra/cmd/project.go b/cobra/cmd/project.go index facd80a5..a3e6d91c 100644 --- a/cobra/cmd/project.go +++ b/cobra/cmd/project.go @@ -138,7 +138,7 @@ func findCmdDir(absPath string) string { files, _ := filepath.Glob(filepath.Join(absPath, "c*")) for _, file := range files { if isCmdDir(file) { - return file + return filepath.Base(file) } }