Split up WissKI Instance code
This commit is contained in:
parent
d7110dd63c
commit
85b5603d9d
16 changed files with 285 additions and 244 deletions
8
internal/component/instances/wisski_exec.go
Normal file
8
internal/component/instances/wisski_exec.go
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
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...)...)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue