mirror of
https://github.com/inexio/thola.git
synced 2026-10-24 03:08:55 +03:00
24 lines
545 B
Go
24 lines
545 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/inexio/thola/internal/request"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func init() {
|
|
addDeviceFlags(readServerCMD)
|
|
readCMD.AddCommand(readServerCMD)
|
|
}
|
|
|
|
var readServerCMD = &cobra.Command{
|
|
Use: "server",
|
|
Short: "Read out server specific information of a device",
|
|
Long: "Read out server specific information of a device like user or process count.",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
request := request.ReadServerRequest{
|
|
ReadRequest: getReadRequest(args[0]),
|
|
}
|
|
handleRequest(&request)
|
|
},
|
|
}
|