Add spack dependencies command and tests for it and dependents.

This commit is contained in:
Todd Gamblin
2017-06-19 00:51:34 -07:00
parent af3c794ab5
commit b88f55e523
7 changed files with 261 additions and 15 deletions

View File

@@ -155,9 +155,9 @@ def set_color_when(when):
def color_when(value):
"""Context manager to temporarily use a particular color setting."""
old_value = value
set_color(value)
set_color_when(value)
yield
set_color(old_value)
set_color_when(old_value)
class match_to_ansi(object):