mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 01:24:05 +08:00
add nfs.upload
This commit is contained in:
parent
85c2f30262
commit
362c529d4e
@ -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)),
|
||||
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) {
|
||||
if len(arg) == 0 {
|
||||
arg = append(arg, "")
|
||||
|
@ -14,7 +14,7 @@ field "文档" web.code.inner args `usr/install/vim81/_install/share/vim/vim81/d
|
||||
section "构建"
|
||||
spark shell `
|
||||
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
|
||||
tar xvf vim-8.1.tar.bz2 && cd vim81
|
||||
|
Loading…
x
Reference in New Issue
Block a user