From e55822c62f7287698a683e6e7e40aa9a992b5585 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 28 Sep 2025 21:51:10 +0900 Subject: container/init: reduce verbose noise This makes it possible to optionally omit the identifying verbose message, for when the Op implementation can provide a much more useful message in its case, using information not yet available to the String method. Signed-off-by: Ophestra --- container/initmkdir.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'container/initmkdir.go') diff --git a/container/initmkdir.go b/container/initmkdir.go index 40f00fc0..375c0e09 100644 --- a/container/initmkdir.go +++ b/container/initmkdir.go @@ -32,5 +32,5 @@ func (m *MkdirOp) Is(op Op) bool { m.Path.Is(vm.Path) && m.Perm == vm.Perm } -func (*MkdirOp) prefix() string { return "creating" } -func (m *MkdirOp) String() string { return fmt.Sprintf("directory %q perm %s", m.Path, m.Perm) } +func (*MkdirOp) prefix() (string, bool) { return "creating", true } +func (m *MkdirOp) String() string { return fmt.Sprintf("directory %q perm %s", m.Path, m.Perm) } -- cgit v1.3.1