27 lines
589 B
Go
27 lines
589 B
Go
package cmd
|
|
|
|
import (
|
|
log "github.com/sirupsen/logrus"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var hardwareCmd = &cobra.Command{
|
|
Use: "hardware",
|
|
Aliases: []string{"hw"},
|
|
Short: "Provides hardware information about your system",
|
|
Long: `
|
|
The hardware command provides information about the hardware of your system
|
|
that is running Home Assistant. It is useful for finding things like: available
|
|
audio devices and serial ports.`,
|
|
Example: `
|
|
ha hardware info
|
|
ha hardware audio`,
|
|
}
|
|
|
|
func init() {
|
|
log.Debug("Init hardware")
|
|
|
|
// add cmd to root command
|
|
rootCmd.AddCommand(hardwareCmd)
|
|
}
|