1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-26 01:04:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2021-11-04 15:08:30 +08:00
parent 4a83e6144d
commit f21bd1b5a1

View File

@ -5,11 +5,11 @@ import (
"path" "path"
"shylinux.com/x/ice" "shylinux.com/x/ice"
"shylinux.com/x/icebergs/misc/ssh" _ "shylinux.com/x/icebergs/misc/ssh"
) )
func main() { func main() {
defer func() { recover() }() defer func() { recover() }()
args := []string{ssh.CONNECT, "open", "authfile", path.Join(os.Getenv("HOME"), ".ssh/", path.Base(os.Args[0])+".json")} args := []string{"ssh.connect", "open", "authfile", path.Join(os.Getenv("HOME"), ".ssh/", path.Base(os.Args[0])+".json")}
print(ice.Run(append(args, os.Args[1:]...)...)) print(ice.Run(append(args, os.Args[1:]...)...))
} }