From 6975b2c934d52f2f6d1aeccf8211838ed6cdbdc2 Mon Sep 17 00:00:00 2001 From: "Cemal Y. Dalar" Date: Sun, 12 Jan 2025 22:16:01 +0100 Subject: [PATCH] ssh dotenv support --- cmd/ssh.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/ssh.go b/cmd/ssh.go index b5e7129..9b8b21e 100644 --- a/cmd/ssh.go +++ b/cmd/ssh.go @@ -81,6 +81,14 @@ var sshCmd = &cobra.Command{ Spinner: s, } + if opt.DotEnvFile != "" { + dotEnvVars, err := tools.ParseDotEnvFile(opt.DotEnvFile) + if err != nil { + log.Println(err) + } + opt.Variables = append(dotEnvVars, opt.Variables...) + } + if len(uploadSlice) > 0 { ProcessUploadSlice(uploadSlice, remote) }