1
0
mirror of https://github.com/inexio/thola.git synced 2026-10-24 03:08:55 +03:00
Files
thola/cmd/identify.go
mikameyer 747239d114 rename core => internal
mikrotik bugfix
2021-06-09 15:08:20 +02:00

25 lines
533 B
Go

package cmd
import (
"github.com/inexio/thola/internal/request"
"github.com/spf13/cobra"
)
func init() {
addDeviceFlags(identifyCMD)
rootCMD.AddCommand(identifyCMD)
}
var identifyCMD = &cobra.Command{
Use: "identify",
Short: "Automatically identify devices",
Long: "Automatically identify devices.\n\n" +
"It returns properties like vendor, model, serial number,...",
Run: func(cmd *cobra.Command, args []string) {
r := request.IdentifyRequest{
BaseRequest: getBaseRequest(args[0]),
}
handleRequest(&r)
},
}