mirror of
https://github.com/spf13/cobra
synced 2024-11-16 10:47:09 +00:00
removing some extra prints
This commit is contained in:
parent
a7defd47ef
commit
4f2eaa858f
1 changed files with 0 additions and 4 deletions
|
@ -129,7 +129,6 @@ func guessProjectPath() {
|
||||||
|
|
||||||
// if we are in the cmd directory.. back up
|
// if we are in the cmd directory.. back up
|
||||||
for _, c := range cmdDirs {
|
for _, c := range cmdDirs {
|
||||||
fmt.Print(c)
|
|
||||||
if base == c {
|
if base == c {
|
||||||
projectPath = filepath.Dir(x)
|
projectPath = filepath.Dir(x)
|
||||||
return
|
return
|
||||||
|
@ -228,16 +227,13 @@ func dirExists(path string) (bool, error) {
|
||||||
func writeTemplateToFile(path string, file string, template string, data interface{}) error {
|
func writeTemplateToFile(path string, file string, template string, data interface{}) error {
|
||||||
filename := filepath.Join(path, file)
|
filename := filepath.Join(path, file)
|
||||||
|
|
||||||
fmt.Println(filename)
|
|
||||||
r, err := templateToReader(template, data)
|
r, err := templateToReader(template, data)
|
||||||
|
|
||||||
fmt.Println("err:", err)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
err = safeWriteToDisk(filename, r)
|
err = safeWriteToDisk(filename, r)
|
||||||
fmt.Println("err:", err)
|
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue