Skip to content
Myr

Remove/replace SetOutput on Command - deprecated (#1078)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Replace SetOutput on Command - deprecated

authored by John McBride · committed by GitHub · parent 4741428 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:command_test.go+2 added-1 removed
1812 unmodified lines
1813 parent.AddCommand(child2)1814 parent.SetArgs(tc.args)18151816 output := new(bytes.Buffer)1817 parent.SetOutput(output)1817 parent.SetOut(output)1818 parent.SetErr(output)18191820 parent.Execute()18211822 if called == nil {
138 unmodified lines