mirror of
https://github.com/spf13/cobra
synced 2025-05-06 05:17:21 +00:00
Debug statements cleared
This commit is contained in:
parent
57d975babe
commit
9dc374d001
2 changed files with 4 additions and 4 deletions
|
@ -143,7 +143,7 @@ func createCmdFile(license License, path, cmdName string, cmdVariable string) {
|
||||||
{{if .license}}{{comment .license}}{{end}}
|
{{if .license}}{{comment .license}}{{end}}
|
||||||
|
|
||||||
package {{.cmdPackage}}
|
package {{.cmdPackage}}
|
||||||
//This is a test
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
|
|
@ -31,9 +31,9 @@ func TestGoldenAddCmd(t *testing.T) {
|
||||||
initializeProject(project)
|
initializeProject(project)
|
||||||
|
|
||||||
// Then add the "test" command.
|
// Then add the "test" command.
|
||||||
cmdName := "test"
|
// cmdName := "test"
|
||||||
cmdPath := filepath.Join(project.CmdPath(), cmdName+".go")
|
// cmdPath := filepath.Join(project.CmdPath(), cmdName+".go")
|
||||||
createCmdFile(project.License(), cmdPath, cmdName)
|
// createCmdFile(project.License(), cmdPath, cmdName)
|
||||||
|
|
||||||
expectedFiles := []string{".", "root.go", "test.go"}
|
expectedFiles := []string{".", "root.go", "test.go"}
|
||||||
gotFiles := []string{}
|
gotFiles := []string{}
|
||||||
|
|
Loading…
Add table
Reference in a new issue