roots / trellis-cli

A CLI to manage Trellis projects
https://roots.io/trellis/
MIT License
168 stars 24 forks source link

Improve failure output for commands #319

Closed swalkinshaw closed 2 years ago

swalkinshaw commented 2 years ago

Fixes #300

This improves failure handling and output for two types of commands:

  1. ones that use ad hoc playbooks
  2. vault related

In both cases trellis-cli wasn't outputting useful error output from the underlying Ansible commands making it harder to troubleshoot.

The solution is to capture the output and conditionally display the error output when the underlying command fails.