fix(agent): replace bytes with core.NewBuffer in cmd/core-agent/commands.go

Removed bytes import. Used core.NewBuffer() for commandLine output buffer.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Snider 2026-04-25 10:20:20 +01:00
parent 9ed15cbb42
commit b118236410

View file

@ -3,7 +3,6 @@
package main
import (
"bytes"
"flag"
"dappco.re/go/agent/pkg/agentic"
@ -19,7 +18,7 @@ type applicationCommandSet struct {
func startupArgs() []string {
previous := flag.CommandLine
commandLine := flag.NewFlagSet("core-agent", flag.ContinueOnError)
commandLine.SetOutput(&bytes.Buffer{})
commandLine.SetOutput(core.NewBuffer())
commandLine.BoolFunc("quiet", "", func(string) error {
core.SetLevel(core.LevelError)
return nil
@ -134,4 +133,3 @@ func (commands applicationCommandSet) env(_ core.Options) core.Result {
}
return core.Result{OK: true}
}