aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-09-29 09:30:57 +0900
committerOphestra <cat@gensokyo.uk>2025-09-29 09:30:57 +0900
commit71e70b7b5feb94aab5d99d9a3c2bea54537632c4 (patch)
treecb720d345d86b21136bdad24b4d4b083d6fef207 /cmd
parentafa1a8043eecc1849bbb7213f9cd8bbcabc06899 (diff)
internal/app/paths: do not print messages
This change was missed while merging the rest of the logging changes. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/hakurei/command.go4
-rw-r--r--cmd/hakurei/parse.go2
-rw-r--r--cmd/hakurei/print.go5
3 files changed, 5 insertions, 6 deletions
diff --git a/cmd/hakurei/command.go b/cmd/hakurei/command.go
index 5e123f0b..b9da60be 100644
--- a/cmd/hakurei/command.go
+++ b/cmd/hakurei/command.go
@@ -210,7 +210,7 @@ func buildCommand(ctx context.Context, msg container.Msg, early *earlyHardeningE
c.NewCommand("show", "Show live or local app configuration", func(args []string) error {
switch len(args) {
case 0: // system
- printShowSystem(msg, os.Stdout, flagShort, flagJSON)
+ printShowSystem(os.Stdout, flagShort, flagJSON)
case 1: // instance
name := args[0]
@@ -231,7 +231,7 @@ func buildCommand(ctx context.Context, msg container.Msg, early *earlyHardeningE
var flagShort bool
c.NewCommand("ps", "List active instances", func(args []string) error {
var sc hst.Paths
- app.CopyPaths(msg, &sc, new(app.Hsu).MustID())
+ app.CopyPaths(&sc, new(app.Hsu).MustID())
printPs(os.Stdout, time.Now().UTC(), state.NewMulti(msg, sc.RunDirPath.String()), flagShort, flagJSON)
return errSuccess
}).Flag(&flagShort, "short", command.BoolFlag(false), "Print instance id")
diff --git a/cmd/hakurei/parse.go b/cmd/hakurei/parse.go
index 3825ca1f..eee7d323 100644
--- a/cmd/hakurei/parse.go
+++ b/cmd/hakurei/parse.go
@@ -89,7 +89,7 @@ func tryShort(msg container.Msg, name string) (config *hst.Config, entry *state.
msg.Verbose("argument looks like prefix")
var sc hst.Paths
- app.CopyPaths(msg, &sc, new(app.Hsu).MustID())
+ app.CopyPaths(&sc, new(app.Hsu).MustID())
s := state.NewMulti(msg, sc.RunDirPath.String())
if entries, err := state.Join(s); err != nil {
log.Printf("cannot join store: %v", err)
diff --git a/cmd/hakurei/print.go b/cmd/hakurei/print.go
index 2c575386..938517b8 100644
--- a/cmd/hakurei/print.go
+++ b/cmd/hakurei/print.go
@@ -11,19 +11,18 @@ import (
"text/tabwriter"
"time"
- "hakurei.app/container"
"hakurei.app/hst"
"hakurei.app/internal/app"
"hakurei.app/internal/app/state"
"hakurei.app/system/dbus"
)
-func printShowSystem(msg container.Msg, output io.Writer, short, flagJSON bool) {
+func printShowSystem(output io.Writer, short, flagJSON bool) {
t := newPrinter(output)
defer t.MustFlush()
info := &hst.Info{User: new(app.Hsu).MustID()}
- app.CopyPaths(msg, &info.Paths, info.User)
+ app.CopyPaths(&info.Paths, info.User)
if flagJSON {
printJSON(output, short, info)