aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-03 01:49:27 +0900
committerOphestra <cat@gensokyo.uk>2025-11-03 01:49:27 +0900
commitae66b3d2fb2f1f65f6ca8932e8044114e609d0b4 (patch)
tree3079bfec79b4ac5aada225bfa0da4e631d128741 /cmd
parent149bc3671a499cce0b5719d7396355fabfa7fc2a (diff)
message: rename NewMsg to New
Should have done this when relocating this from container. Now is a good time to rename it before v0.3.x. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/hakurei/command_test.go2
-rw-r--r--cmd/hakurei/main.go2
-rw-r--r--cmd/hakurei/parse_test.go2
-rw-r--r--cmd/hakurei/print_test.go2
-rw-r--r--cmd/hpkg/main.go2
5 files changed, 5 insertions, 5 deletions
diff --git a/cmd/hakurei/command_test.go b/cmd/hakurei/command_test.go
index e489291d..82e67f23 100644
--- a/cmd/hakurei/command_test.go
+++ b/cmd/hakurei/command_test.go
@@ -77,7 +77,7 @@ Flags:
t.Parallel()
out := new(bytes.Buffer)
- c := buildCommand(t.Context(), message.NewMsg(nil), new(earlyHardeningErrs), out)
+ c := buildCommand(t.Context(), message.New(nil), new(earlyHardeningErrs), out)
if err := c.Parse(tc.args); !errors.Is(err, command.ErrHelp) && !errors.Is(err, flag.ErrHelp) {
t.Errorf("Parse: error = %v; want %v",
err, command.ErrHelp)
diff --git a/cmd/hakurei/main.go b/cmd/hakurei/main.go
index dcea40c0..169ac6c0 100644
--- a/cmd/hakurei/main.go
+++ b/cmd/hakurei/main.go
@@ -32,7 +32,7 @@ func main() {
log.SetPrefix("hakurei: ")
log.SetFlags(0)
- msg := message.NewMsg(log.Default())
+ msg := message.New(log.Default())
early := earlyHardeningErrs{
yamaLSM: container.SetPtracer(0),
diff --git a/cmd/hakurei/parse_test.go b/cmd/hakurei/parse_test.go
index 81f96054..e98e945f 100644
--- a/cmd/hakurei/parse_test.go
+++ b/cmd/hakurei/parse_test.go
@@ -28,7 +28,7 @@ func TestShortIdentifier(t *testing.T) {
func TestTryIdentifier(t *testing.T) {
t.Parallel()
- msg := message.NewMsg(nil)
+ msg := message.New(nil)
id := hst.ID{
0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef,
0xfe, 0xdc, 0xba, 0x98, 0x76, 0x54, 0x32, 0x10,
diff --git a/cmd/hakurei/print_test.go b/cmd/hakurei/print_test.go
index 9b1922c2..98ca8061 100644
--- a/cmd/hakurei/print_test.go
+++ b/cmd/hakurei/print_test.go
@@ -761,7 +761,7 @@ func TestPrintPs(t *testing.T) {
t.Parallel()
var printBuf, logBuf bytes.Buffer
- msg := message.NewMsg(log.New(&logBuf, "check: ", 0))
+ msg := message.New(log.New(&logBuf, "check: ", 0))
msg.SwapVerbose(true)
printPs(msg, &printBuf, testTime, s, tc.short, tc.json)
if got := printBuf.String(); got != tc.want {
diff --git a/cmd/hpkg/main.go b/cmd/hpkg/main.go
index 757dc144..0ce1945f 100644
--- a/cmd/hpkg/main.go
+++ b/cmd/hpkg/main.go
@@ -24,7 +24,7 @@ var (
func main() {
log.SetPrefix("hpkg: ")
log.SetFlags(0)
- msg := message.NewMsg(log.Default())
+ msg := message.New(log.Default())
if err := os.Setenv("SHELL", pathShell.String()); err != nil {
log.Fatalf("cannot set $SHELL: %v", err)