instances: Add methods to evaluate PHP
This commit is contained in:
parent
492a0c0404
commit
a3511b1bfc
3 changed files with 151 additions and 8 deletions
|
|
@ -1,8 +1,10 @@
|
|||
package instances
|
||||
|
||||
import "github.com/tkw1536/goprogram/stream"
|
||||
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) {
|
||||
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...)...)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue