Added DeviceFamily to get dev-devices output, Fixes #81 (#599)

Added additional column for DeviceFamily in output of mdmctl get dev-devices -serials=SERIALNUMBER
This commit is contained in:
Zack McCauley
2019-07-01 15:49:33 -06:00
committed by Victor Vrantchan
parent ed0e372a6e
commit d6e4afe4d7

View File

@@ -13,7 +13,7 @@ import (
type depDevicesTableOutput struct{ w *tabwriter.Writer }
func (out *depDevicesTableOutput) BasicHeader() {
fmt.Fprintf(out.w, "SerialNumber\tModel\tProfileStatus\tProfileUUID\n")
fmt.Fprintf(out.w, "SerialNumber\tModel\tDeviceFamily\tProfileStatus\tProfileUUID\n")
}
func (out *depDevicesTableOutput) BasicFooter() {
@@ -42,7 +42,7 @@ func (cmd *getCommand) getDEPDevices(args []string) error {
return err
}
for _, d := range resp.Devices {
fmt.Fprintf(out.w, "%s\t%s\t%s\t%s\n", d.SerialNumber, d.Model, d.ProfileStatus, d.ProfileUUID)
fmt.Fprintf(out.w, "%s\t%s\t%s\t%s\t%s\n", d.SerialNumber, d.Model, d.DeviceFamily, d.ProfileStatus, d.ProfileUUID)
}
return nil
}