wisski-cloud-distillery/internal/wisski/ingredient/barrel/shell.go
2022-11-16 13:07:14 +01:00

8 lines
299 B
Go

package barrel
import "github.com/tkw1536/goprogram/stream"
// Shell executes a shell command inside the instance.
func (barrel *Barrel) Shell(io stream.IOStream, argv ...string) (int, error) {
return barrel.Stack().Exec(io, "barrel", "/bin/sh", append([]string{"/user_shell.sh"}, argv...)...)
}