mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-04-09 02:13:35 +00:00
implement info command
upd help mds
This commit is contained in:
18
cmd/x32-cli/info.go
Normal file
18
cmd/x32-cli/info.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user