Skip to content

Commit

Permalink
#55 Add support for the follow key in the commands config
Browse files Browse the repository at this point in the history
  • Loading branch information
zshamrock committed May 4, 2018
1 parent 2a8c1dd commit c965f11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions command/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ func CmdRun(c *cli.Context) {
CheckUpdate(c)
follow := ContainsFollow(c)
command, extraArgs := getCommand(c, follow)
if !follow && command.Follow {
follow = command.Follow
}
hosts := getHosts(c, follow)
var confirmation string
if command.RequiresConfirmation {
Expand Down Expand Up @@ -64,6 +61,9 @@ func CmdRun(c *cli.Context) {
cmd = fmt.Sprintf("cd %s && %s", workingDir, cmd)
}
}
if !follow && command.Follow {
follow = command.Follow
}
go ssh(sshConfig, host, cmd, follow, ch)
}
outputs := make([]execOutput, 0, len(hosts))
Expand Down

0 comments on commit c965f11

Please sign in to comment.