mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-02-26 00:09:11 +00:00
18 lines
292 B
Go
18 lines
292 B
Go
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
|
|
}
|