agent/cmd/core-agent/commands_example_test.go
Virgil 4d278a5172 fix(ax): use declarative core options in core-agent
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 20:05:47 +00:00

22 lines
424 B
Go

// SPDX-License-Identifier: EUPL-1.2
package main
import (
"dappco.re/go/core"
)
func Example_registerAppCommands() {
c := core.New(core.WithOptions(core.NewOptions(core.Option{Key: "name", Value: "core-agent"})))
registerAppCommands(c)
core.Println(len(c.Commands()))
// Output: 3
}
func Example_applyLogLevel() {
args := applyLogLevel([]string{"--debug", "status"})
core.Println(args[0])
// Output: status
}