master
Evan Chen 2021-11-17 17:41:21 +08:00
parent 221b52da75
commit 0b0a54085c
2 changed files with 3 additions and 2 deletions

View File

@ -40,7 +40,8 @@ type Action struct {
Name string `json:"name"` Name string `json:"name"`
Cmd string `json:"cmd"` Cmd string `json:"cmd"`
Dir string `json:"dir"` Dir string `json:"dir"`
Env []string `json"env,omitempty"` Envs []string `json"env,omitempty"`
Args []string `json"arg,omitempty"`
run chan struct{} `json:"-"` run chan struct{} `json:"-"`
pid int `json:"-"` pid int `json:"-"`
} }

View File

@ -123,7 +123,7 @@ function setResult(){
result_editor.session.setMode("ace/mode/sh"); result_editor.session.setMode("ace/mode/sh");
result_editor.setReadOnly(true); result_editor.setReadOnly(true);
result_editor.setOptions({ result_editor.setOptions({
maxLines: 1000 maxLines: Infinity
}); });
{{if not .ResultBellow}} {{if not .ResultBellow}}
document.addEventListener('keydown', function (e) { document.addEventListener('keydown', function (e) {