diff --git a/configui.go b/configui.go index 6eeb99a..6102476 100644 --- a/configui.go +++ b/configui.go @@ -40,7 +40,8 @@ type Action struct { Name string `json:"name"` Cmd string `json:"cmd"` Dir string `json:"dir"` - Env []string `json"env,omitempty"` + Envs []string `json"env,omitempty"` + Args []string `json"arg,omitempty"` run chan struct{} `json:"-"` pid int `json:"-"` } diff --git a/templates/base/script.tmpl b/templates/base/script.tmpl index 1f1d6ed..9b11d4e 100644 --- a/templates/base/script.tmpl +++ b/templates/base/script.tmpl @@ -123,7 +123,7 @@ function setResult(){ result_editor.session.setMode("ace/mode/sh"); result_editor.setReadOnly(true); result_editor.setOptions({ - maxLines: 1000 + maxLines: Infinity }); {{if not .ResultBellow}} document.addEventListener('keydown', function (e) {