1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-26 01:04:06 +08:00
ContextOS/src/relay.go
2021-08-19 07:45:27 +08:00

18 lines
387 B
Go

package main
import (
"os"
"path"
ice "shylinux.com/x/icebergs"
_ "shylinux.com/x/icebergs/base/ssh"
log "shylinux.com/x/toolkits/logs"
)
func main() {
log.LogDisable = true
defer func() { recover() }()
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:]...)...))
}