From 31fdb8af5a12b4f03829f8642faf5c2917b0fb87 Mon Sep 17 00:00:00 2001 From: shylinux Date: Sun, 28 Aug 2022 11:51:10 +0800 Subject: [PATCH] opt some --- base/web/dream.go | 4 ++-- core/code/autogen.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/base/web/dream.go b/base/web/dream.go index 6a759775..a208c9c0 100644 --- a/base/web/dream.go +++ b/base/web/dream.go @@ -21,7 +21,7 @@ func _dream_list(m *ice.Message) *ice.Message { if dream, ok := list[value[mdb.NAME]]; ok { m.Push(mdb.TYPE, dream[mdb.TYPE]) m.Push(cli.STATUS, cli.START) - m.PushButton("vimer", "xterm", cli.OPEN, cli.STOP) + m.PushButton(cli.OPEN, "vimer", "xterm", cli.STOP) m.PushAnchor(strings.Split(MergePod(m, value[mdb.NAME]), "?")[0]) text := []string{} for _, line := range kit.Split(m.Cmdx(SPACE, value[mdb.NAME], cli.SYSTEM, "git", "diff", "--shortstat"), ice.FS, ice.FS) { @@ -177,7 +177,7 @@ func init() { var _dream_script = `#! /bin/sh -require &>/dev/null || if [ -f $PWD/.ish/plug.sh ]; then source $PWD/.ish/plug.sh; elif [ -f $HOME/.ish/plug.sh ]; then source $HOME/.ish/plug.sh; else +if [ -f $PWD/.ish/plug.sh ]; then source $PWD/.ish/plug.sh; elif [ -f $HOME/.ish/plug.sh ]; then source $HOME/.ish/plug.sh; else ctx_temp=$(mktemp); if curl -h &>/dev/null; then curl -o $ctx_temp -fsSL https://shylinux.com; else wget -O $ctx_temp -q http://shylinux.com; fi; source $ctx_temp intshell fi diff --git a/core/code/autogen.go b/core/code/autogen.go index 2826a633..932f391c 100644 --- a/core/code/autogen.go +++ b/core/code/autogen.go @@ -76,7 +76,7 @@ func main() { print(ice.Run()) } func _autogen_script(m *ice.Message, dir string) { m.Cmd(nfs.DEFS, dir, `chapter "{{.Option "name"}}" -field "{{.Option "help"}}" {{.Option "key"}} +field {{.Option "key"}} `) } func _autogen_source(m *ice.Message, main, file string) {