aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-10-17 16:37:23 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-10-17 16:37:23 +0900
commit064db9f02088448b42758dc089787ca7d05b1510 (patch)
tree842eaf2ec2b05495cccb6325dadfb574eb170a54
parent73a698c7cb551e2a372bf9c296862cc5e3fca6e9 (diff)
system/mkdir: type label in String method
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
-rw-r--r--internal/system/mkdir.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/system/mkdir.go b/internal/system/mkdir.go
index 9733b056..33e241a0 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)
}