mirror of
https://github.com/spf13/cobra
synced 2025-05-06 05:17:21 +00:00
string not bool
This commit is contained in:
parent
dd934029fb
commit
112b5c06b4
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ import (
|
||||||
// Use -update to update existing golden files.
|
// Use -update to update existing golden files.
|
||||||
func TestGoldenAddCmd(t *testing.T) {
|
func TestGoldenAddCmd(t *testing.T) {
|
||||||
projectName := "github.com/spf13/testproject"
|
projectName := "github.com/spf13/testproject"
|
||||||
project := NewProject(projectName, false)
|
project := NewProject(projectName, "")
|
||||||
defer os.RemoveAll(project.AbsPath())
|
defer os.RemoveAll(project.AbsPath())
|
||||||
|
|
||||||
viper.Set("author", "NAME HERE <EMAIL ADDRESS>")
|
viper.Set("author", "NAME HERE <EMAIL ADDRESS>")
|
||||||
|
|
|
@ -16,7 +16,7 @@ import (
|
||||||
// Use -update to update existing golden files.
|
// Use -update to update existing golden files.
|
||||||
func TestGoldenInitCmd(t *testing.T) {
|
func TestGoldenInitCmd(t *testing.T) {
|
||||||
projectName := "github.com/spf13/testproject"
|
projectName := "github.com/spf13/testproject"
|
||||||
project := NewProject(projectName, false)
|
project := NewProject(projectName, "")
|
||||||
defer os.RemoveAll(project.AbsPath())
|
defer os.RemoveAll(project.AbsPath())
|
||||||
|
|
||||||
viper.Set("author", "NAME HERE <EMAIL ADDRESS>")
|
viper.Set("author", "NAME HERE <EMAIL ADDRESS>")
|
||||||
|
|
Loading…
Add table
Reference in a new issue