Browse code

Use responsive writer only in help

Fabiano Franz authored on 2016/11/25 01:54:33
Showing 1 changed files
... ...
@@ -30,7 +30,6 @@ import (
30 30
 	"github.com/openshift/origin/pkg/cmd/templates"
31 31
 	cmdutil "github.com/openshift/origin/pkg/cmd/util"
32 32
 	"github.com/openshift/origin/pkg/cmd/util/clientcmd"
33
-	"github.com/openshift/origin/pkg/cmd/util/term"
34 33
 )
35 34
 
36 35
 var (
... ...
@@ -48,7 +47,7 @@ var (
48 48
 func CommandFor(basename string) *cobra.Command {
49 49
 	var cmd *cobra.Command
50 50
 
51
-	in, out, errout := os.Stdin, term.NewResponsiveWriter(os.Stdout), os.Stderr
51
+	in, out, errout := os.Stdin, os.Stdout, os.Stderr
52 52
 
53 53
 	// Make case-insensitive and strip executable suffix if present
54 54
 	if runtime.GOOS == "windows" {
... ...
@@ -103,7 +102,7 @@ func CommandFor(basename string) *cobra.Command {
103 103
 
104 104
 // NewCommandOpenShift creates the standard OpenShift command
105 105
 func NewCommandOpenShift(name string) *cobra.Command {
106
-	in, out, errout := os.Stdin, term.NewResponsiveWriter(os.Stdout), os.Stderr
106
+	in, out, errout := os.Stdin, os.Stdout, os.Stderr
107 107
 
108 108
 	root := &cobra.Command{
109 109
 		Use:   name,