You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of using files in the ContainerEngine API for volume
import/export, expose readers/writers, so we can use os.Stdin and
os.Stdout - meaning that things will work on Windows, where
/dev/stdin and /dev/stdout don't exist.
Avoid the use of a temporary file on import by reading straight
from the request body.
Remove a utility function that doesn't actually do anything.
Signed-off-by: Matt Heon <[email protected]>
@@ -27,7 +29,7 @@ Allow content of volume to be exported into external tar.`
27
29
)
28
30
29
31
var (
30
-
cliExportOpts entities.VolumeExportOptions
32
+
targetPathstring
31
33
)
32
34
33
35
funcinit() {
@@ -38,19 +40,32 @@ func init() {
38
40
flags:=exportCommand.Flags()
39
41
40
42
outputFlagName:="output"
41
-
flags.StringVarP(&cliExportOpts.OutputPath, outputFlagName, "o", "/dev/stdout", "Write to a specified file (default: stdout, which must be redirected)")
43
+
flags.StringVarP(&targetPath, outputFlagName, "o", "", "Write to a specified file (default: stdout, which must be redirected)")
0 commit comments