mirror of
https://github.com/inexio/thola.git
synced 2026-10-24 03:08:55 +03:00
24 lines
530 B
Go
24 lines
530 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/inexio/thola/internal/request"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func init() {
|
|
addDeviceFlags(readDiskCMD)
|
|
readCMD.AddCommand(readDiskCMD)
|
|
}
|
|
|
|
var readDiskCMD = &cobra.Command{
|
|
Use: "disk",
|
|
Short: "Read out storage information of a device",
|
|
Long: "Read out storage information of a device like types and used space of storages.",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
request := request.ReadDiskRequest{
|
|
ReadRequest: getReadRequest(args[0]),
|
|
}
|
|
handleRequest(&request)
|
|
},
|
|
}
|