From 0b0a54085cd89727ec50ab672e399b5d8b5f9b27 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Wed, 17 Nov 2021 17:41:21 +0800 Subject: [PATCH] fix: #58 --- configui.go | 3 ++- templates/base/script.tmpl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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) {