1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-27 01:28:28 +08:00
ContextOS/src/relay.go
2021-08-02 01:15:02 +08:00

18 lines
402 B
Go

package main
import (
"os"
"path"
ice "github.com/shylinux/icebergs"
_ "github.com/shylinux/icebergs/base/ssh"
log "github.com/shylinux/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:]...)...))
}