diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-09-28 21:51:10 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-09-28 21:51:10 +0900 |
| commit | e55822c62f7287698a683e6e7e40aa9a992b5585 (patch) | |
| tree | 19f5e8e2614c86c9a79f8264b49a2b48e13fabee /container/initmkdir.go | |
| parent | 802e6afa34de7f6124157153b0bde4ac25d7b363 (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'container/initmkdir.go')
| -rw-r--r-- | container/initmkdir.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) } |
