Move WissKI Parts to new ingredients system
This commit is contained in:
parent
b5b1ce2340
commit
42b8cbd865
83 changed files with 1016 additions and 646 deletions
8
internal/wisski/ingredient/barrel/shell.go
Normal file
8
internal/wisski/ingredient/barrel/shell.go
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
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...)...)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue