refactor: upgrade easyssh to support DefaultConfig (#61)

This commit is contained in:
Bo-Yi Wu
2017-04-01 13:57:53 +08:00
committed by GitHub
parent d447bbd595
commit 05b1a61165
7 changed files with 155 additions and 52 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ package main
import (
"os"
"github.com/appleboy/easyssh-proxy"
"github.com/joho/godotenv"
_ "github.com/joho/godotenv/autoload"
"github.com/urfave/cli"
@@ -168,7 +169,7 @@ func run(c *cli.Context) error {
Timeout: c.Duration("timeout"),
CommandTimeout: c.Int("command.timeout"),
Script: c.StringSlice("script"),
Proxy: defaultConfig{
Proxy: easyssh.DefaultConfig{
Key: c.String("proxy.ssh-key"),
KeyPath: c.String("proxy.key-path"),
User: c.String("proxy.username"),