Browse code

Extract should default to current directory

Explicitly specify '.' as the target.

Clayton Coleman authored on 2016/08/17 06:58:55
Showing 3 changed files
... ...
@@ -70,7 +70,7 @@ with \-\-to=DIRECTORY.
70 70
 \[la]http://golang.org/pkg/text/template/#pkg-overview\[ra]].
71 71
 
72 72
 .PP
73
-\fB\-\-to\fP=""
73
+\fB\-\-to\fP="."
74 74
     Directory to extract files to.
75 75
 
76 76
 
... ...
@@ -70,7 +70,7 @@ with \-\-to=DIRECTORY.
70 70
 \[la]http://golang.org/pkg/text/template/#pkg-overview\[ra]].
71 71
 
72 72
 .PP
73
-\fB\-\-to\fP=""
73
+\fB\-\-to\fP="."
74 74
     Directory to extract files to.
75 75
 
76 76
 
... ...
@@ -56,6 +56,8 @@ func NewCmdExtract(fullName string, f *clientcmd.Factory, in io.Reader, out, err
56 56
 	options := &ExtractOptions{
57 57
 		Out: out,
58 58
 		Err: errOut,
59
+
60
+		TargetDirectory: ".",
59 61
 	}
60 62
 	cmd := &cobra.Command{
61 63
 		Use:     "extract RESOURCE/NAME [--to=DIRECTORY] [--keys=KEY ...]",