print command run when running with verbosity enabled

This commit is contained in:
Luke K 2020-04-11 19:31:28 +00:00
parent a4565d497f
commit e1930bebb4
No known key found for this signature in database
GPG Key ID: 4896F75BAF2E1966
1 changed files with 6 additions and 1 deletions

View File

@ -39,7 +39,12 @@ func (n *Runner) Run(path string) error {
cmd := exec.Command("appsody", args...)
cmd.Dir = path
// We really need to show the user all output, so a method to squelch
// If verbose logging is enabled, echo command
if n.Verbose {
fmt.Println(cmd)
}
// We need to show the user all output, so a method to squelch
// appsody's chattiness is not immediately apparent.
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr