system/mkdir: type label in String method
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
parent
73a698c7cb
commit
064db9f020
@ -77,5 +77,9 @@ func (m *Mkdir) Path() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m *Mkdir) String() 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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user