Do a large chunk of the move to go
This commit moves a huge chunk of the code to go. The TODO.md document indicates what is left to be done.
This commit is contained in:
parent
db2ad9b4bd
commit
7b38fdd801
93 changed files with 4689 additions and 645 deletions
11
internal/execx/compose.go
Normal file
11
internal/execx/compose.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package execx
|
||||
|
||||
import (
|
||||
"github.com/tkw1536/goprogram/stream"
|
||||
)
|
||||
|
||||
// Compose runs a docker-compose command in a specific directory, with the provided arguments and streams.
|
||||
// It then waits for the process to exit, and returns the exit code.
|
||||
func Compose(io stream.IOStream, workdir string, args ...string) int {
|
||||
return Exec(io, workdir, "docker", append([]string{"compose"}, args...)...)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue