implement info command

upd help mds
This commit is contained in:
2026-02-11 21:47:56 +00:00
parent 32a09db1a4
commit 58866b794b
8 changed files with 70 additions and 21 deletions

18
cmd/x32-cli/info.go Normal file
View File

@@ -0,0 +1,18 @@
package main
import "fmt"
type InfoCmd struct {
}
func (c *InfoCmd) Run(ctx *context) error {
fmt.Fprintf(
ctx.Out,
"Host: %s | Name: %s | Model: %s | Firmware: %s\n",
ctx.Client.Info.Host,
ctx.Client.Info.Name,
ctx.Client.Info.Model,
ctx.Client.Info.Firmware,
)
return nil
}