forked from x/icebergs
opt some
This commit is contained in:
parent
c843dd8ac9
commit
8215d26059
@ -138,8 +138,8 @@ func init() {
|
||||
})
|
||||
}},
|
||||
tcp.OPEN: {Name: "open authfile username=shy password verfiy host=shylinux.com port=22 private=.ssh/id_rsa", Help: "终端", Hand: func(m *ice.Message, arg ...string) {
|
||||
defer m.Echo("exit %s@%s:%s\n", m.Option(aaa.USERNAME), m.Option(tcp.HOST), m.Option(tcp.PORT))
|
||||
_ssh_open(nfs.OptionLoad(m, m.Option("authfile")), arg...)
|
||||
defer nfs.OptionLoad(m, m.Option("authfile")).Echo("exit %s@%s:%s\n", m.Option(aaa.USERNAME), m.Option(tcp.HOST), m.Option(tcp.PORT))
|
||||
_ssh_open(m, arg...)
|
||||
}},
|
||||
tcp.DIAL: {Name: "dial name=shylinux host=shylinux.com port=22 username=shy private=.ssh/id_rsa", Help: "添加", Hand: func(m *ice.Message, arg ...string) {
|
||||
m.Go(func() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user