mirror of
https://github.com/spf13/cobra
synced 2024-11-24 22:57:12 +00:00
Remove/replace SetOutput on Command - deprecated (#1078)
Replace SetOutput on Command - deprecated
This commit is contained in:
parent
47414285f9
commit
7fead4bf3b
1 changed files with 2 additions and 1 deletions
|
@ -1814,7 +1814,8 @@ func (tc *calledAsTestcase) test(t *testing.T) {
|
||||||
parent.SetArgs(tc.args)
|
parent.SetArgs(tc.args)
|
||||||
|
|
||||||
output := new(bytes.Buffer)
|
output := new(bytes.Buffer)
|
||||||
parent.SetOutput(output)
|
parent.SetOut(output)
|
||||||
|
parent.SetErr(output)
|
||||||
|
|
||||||
parent.Execute()
|
parent.Execute()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue