From 064db9f02088448b42758dc089787ca7d05b1510 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Thu, 17 Oct 2024 16:37:23 +0900 Subject: [PATCH] system/mkdir: type label in String method Signed-off-by: Ophestra Umiker --- internal/system/mkdir.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/system/mkdir.go b/internal/system/mkdir.go index 9733b05..33e241a 100644 --- a/internal/system/mkdir.go +++ b/internal/system/mkdir.go @@ -77,5 +77,9 @@ func (m *Mkdir) Path() string { } func (m *Mkdir) String() string { - return fmt.Sprintf("mode: %s path: %q", m.perm.String(), m.path) + t := "Ensure" + if m.ephemeral { + t = TypeString(m.Type()) + } + return fmt.Sprintf("mode: %s type: %s path: %q", m.perm.String(), t, m.path) }