aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/app/run.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/app/run.go')
-rw-r--r--cmd/app/run.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmd/app/run.go b/cmd/app/run.go
index 16f8b885..b8512579 100644
--- a/cmd/app/run.go
+++ b/cmd/app/run.go
@@ -12,7 +12,12 @@ import (
)
// run starts a container via cmd/hakurei and returns after it terminates.
-func run(ctx context.Context, msg message.Msg, config *hst.Config) error {
+func run(
+ ctx context.Context,
+ msg message.Msg,
+ config *hst.Config,
+ args ...string,
+) error {
c, cancel := context.WithCancel(ctx)
defer cancel()
@@ -25,6 +30,7 @@ func run(ctx context.Context, msg message.Msg, config *hst.Config) error {
cmd.Args = append(cmd.Args, "-v")
}
cmd.Args = append(cmd.Args, "run", "3")
+ cmd.Args = append(cmd.Args, args...)
r, w, err := os.Pipe()
if err != nil {