Skip to content

Commit

Permalink
ssh dotenv support (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdalar authored Jan 13, 2025
1 parent 246c6c6 commit 24957d3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 24957d3

Please sign in to comment.