From 36eda66b834ce892bbf5cdc1a16325b174b79f81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Fri, 26 Jan 2024 11:43:38 +0100 Subject: [PATCH] for a var to string => print the gitlab key --- app/Lib/CdEnvVariable.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Lib/CdEnvVariable.php b/app/Lib/CdEnvVariable.php index 1bfd662..e76c336 100644 --- a/app/Lib/CdEnvVariable.php +++ b/app/Lib/CdEnvVariable.php @@ -201,6 +201,11 @@ class CdEnvVariable implements \Stringable // * TOP ROW $printStr = $printStr->append(\str_pad(" VAR `{$this->key}` ", $rowLength, '_', \STR_PAD_BOTH))->newLine(); + $printStr = $printStr->append(\str_pad('key', $titlePad, pad_type: \STR_PAD_LEFT)) + ->append(' => ')->append('`') + ->append($this->getFormatedGitlabKey()) + ->append('`')->newLine(); + $printStr = $printStr->append(\str_pad('value', $titlePad, pad_type: \STR_PAD_LEFT)) ->append(' => '); $value = $this->masked ? '*********' : $this->value;