Skip to content

Commit 459c7e2

Browse files
committed
#55 update pipe code to use latest dockerclient interface
1 parent 148c077 commit 459c7e2

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

cli/cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,5 +177,5 @@ func DisplayHelp(filename string) {
177177

178178
// DisplayVersion prints the version information for the program.
179179
func DisplayVersion(filename string) {
180-
fmt.Printf("%s 1.0.4\n", filename)
180+
fmt.Printf("%s 1.0.5-SNAPSHOT\n", filename)
181181
}

main.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,19 @@ func RunDexecContainer(cliParser cli.CLI) int {
120120
if err != nil {
121121
log.Fatal(err)
122122
}
123+
124+
err = client.Logs(docker.LogsOptions {
125+
Container: container.ID,
126+
Stdout: true,
127+
Stderr: true,
128+
OutputStream:os.Stdout,
129+
ErrorStream: os.Stderr,
130+
})
131+
132+
if err != nil {
133+
log.Fatal(err)
134+
}
135+
123136
return code
124137
}
125138

0 commit comments

Comments
 (0)