From d6e4afe4d734c26e04e585f15f27b96cb7d07f21 Mon Sep 17 00:00:00 2001 From: Zack McCauley Date: Mon, 1 Jul 2019 15:49:33 -0600 Subject: [PATCH] Added DeviceFamily to get dev-devices output, Fixes #81 (#599) Added additional column for DeviceFamily in output of mdmctl get dev-devices -serials=SERIALNUMBER --- cmd/mdmctl/get_dep_devices.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/mdmctl/get_dep_devices.go b/cmd/mdmctl/get_dep_devices.go index de1c41c2..609d6873 100644 --- a/cmd/mdmctl/get_dep_devices.go +++ b/cmd/mdmctl/get_dep_devices.go @@ -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 }