Embed the data files needed for the ssh kitten into the Go binary

This commit is contained in:
Kovid Goyal
2023-02-22 11:09:50 +05:30
parent b4b8943e64
commit a84b688038
5 changed files with 114 additions and 31 deletions

View File

@@ -170,6 +170,7 @@ type connection_data struct {
}
func run_ssh(ssh_args, server_args, found_extra_args []string) (rc int, err error) {
go Data()
cmd := append([]string{SSHExe()}, ssh_args...)
cd := connection_data{remote_args: server_args[1:]}
hostname := server_args[0]