wisski-cloud-distillery/internal/component/instances/wisski_exec.go
2022-09-15 12:54:16 +02:00

8 lines
302 B
Go

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