fn/framework support for reading from stdin in standalone

- speficy '-' to read from stdin when running standalone
This commit is contained in:
Phillip Wittrock
2020-11-21 09:15:31 -08:00
parent 7e01aec5a4
commit 82b2d83ede
4 changed files with 107 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ func TestPatchTemplate(t *testing.T) {
// TODO: make this test pass on windows -- current failure seems spurious
testutil.SkipWindows(t)
cmdFn := func() cobra.Command {
cmdFn := func() *cobra.Command {
type api struct {
Selector framework.Selector `json:"selector" yaml:"selector"`
A string `json:"a" yaml:"a"`