command/remote-{pull,push}: colorize and show success output

pull/1325/head
Mitchell Hashimoto 11 years ago
parent 38b1a727bf
commit 6379a888fb

@ -61,7 +61,8 @@ func (c *RemotePullCommand) Run(args []string) int {
c.Ui.Error(fmt.Sprintf("%s", change))
return 1
} else {
c.Ui.Output(fmt.Sprintf("%s", change))
c.Ui.Output(c.Colorize().Color(fmt.Sprintf(
"[reset][bold][green]%s", change)))
}
return 0

@ -68,6 +68,8 @@ func (c *RemotePushCommand) Run(args []string) int {
return 1
}
c.Ui.Output(c.Colorize().Color(
"[reset][bold][green]State successfully pushed!"))
return 0
}

Loading…
Cancel
Save