1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 17:44:05 +08:00

add nfs.upload

This commit is contained in:
shylinux 2020-12-11 10:43:50 +08:00
parent 85c2f30262
commit 362c529d4e
2 changed files with 10 additions and 1 deletions

View File

@ -353,6 +353,15 @@ var Index = &ice.Context{Name: "nfs", Help: "存储模块",
_file_list(m, arg[2], arg[1], 0, m.Option(DIR_DEEP) == "true", kit.Select(TYPE_BOTH, m.Option(DIR_TYPE)), _file_list(m, arg[2], arg[1], 0, m.Option(DIR_DEEP) == "true", kit.Select(TYPE_BOTH, m.Option(DIR_TYPE)),
nil, []string{"time", "size", "type", "path"}) nil, []string{"time", "size", "type", "path"})
}}, }},
"upload": {Name: "render type name text", Help: "渲染", Hand: func(m *ice.Message, arg ...string) {
up := kit.Simple(m.Optionv(ice.MSG_UPLOAD))
if p := path.Join(m.Option("path"), up[1]); m.Option(ice.MSG_USERPOD) == "" {
m.Cmdy("cache", "watch", up[0], p)
} else {
m.Cmdy("spide", "dev", "save", p, "GET", kit.MergeURL2(m.Option(ice.MSG_USERWEB), "/share/cache/"+up[0]))
}
}},
}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { }, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
if len(arg) == 0 { if len(arg) == 0 {
arg = append(arg, "") arg = append(arg, "")

View File

@ -14,7 +14,7 @@ field "文档" web.code.inner args `usr/install/vim81/_install/share/vim/vim81/d
section "构建" section "构建"
spark shell ` spark shell `
yum install -y wget make gcc yum install -y wget make gcc
yum install -y bzip2.x86_64 yum install -y ncurses-devel.x86_64 bzip2.x86_64
wget ftp://ftp.vim.org/pub/vim/unix/vim-8.1.tar.bz2 wget ftp://ftp.vim.org/pub/vim/unix/vim-8.1.tar.bz2
tar xvf vim-8.1.tar.bz2 && cd vim81 tar xvf vim-8.1.tar.bz2 && cd vim81