Skip to content

Commit 09af921

Browse files
committed
Allow handle display to pass headers
1 parent 43efc81 commit 09af921

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php/class-terminus-command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,13 @@ protected function _execute( array $args = array() , array $assoc_args = array()
284284
}
285285
}
286286

287-
protected function handleDisplay($data,$args = array()) {
287+
protected function handleDisplay($data,$args = array(), $headers = null) {
288288
if (array_key_exists("json", $args) OR Terminus::get_config('json') )
289289
echo \Terminus\Utils\json_dump($data);
290290
else if (array_key_exists("bash", $args))
291291
echo \Terminus\Utils\bash_out((array)$data);
292292
else
293-
$this->_constructTableForResponse((array)$data);
293+
$this->_constructTableForResponse((array)$data,$headers);
294294
}
295295

296296
protected function _debug($vars) {

0 commit comments

Comments
 (0)