diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-10-17 16:37:23 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-10-17 16:37:23 +0900 |
| commit | 064db9f02088448b42758dc089787ca7d05b1510 (patch) | |
| tree | 842eaf2ec2b05495cccb6325dadfb574eb170a54 /internal | |
| parent | 73a698c7cb551e2a372bf9c296862cc5e3fca6e9 (diff) | |
system/mkdir: type label in String method
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/system/mkdir.go | 6 |
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) } |
