2
0
mirror of https://github.com/linka-cloud/d2vm.git synced 2025-06-23 13:52:26 +00:00

output defaults to raw

move image using sparsecat
print command in debug mode

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
2022-08-04 18:09:11 +02:00
parent 5ac3ab9292
commit 6c23c42f80
7 changed files with 12 additions and 5 deletions

View File

@ -38,6 +38,7 @@ func SetDebug(debug bool) {
}
func RunStdout(ctx context.Context, c string, args ...string) error {
fmt.Printf("\n$ %s %s\n", c, strings.Join(args, " "))
cmd := exec.CommandContext(ctx, c, args...)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr