|
61 | 61 | ios devicestate list [options] |
62 | 62 | ios devicestate enable <profileTypeId> <profileId> [options] |
63 | 63 | ios lang [--setlocale=<locale>] [--setlang=<newlang>] [options] |
| 64 | + ios mobilegestalt <key>... [--plist] [options] |
64 | 65 | ios diagnostics list [options] |
65 | 66 | ios pair [--p12file=<orgid>] [--password=<p12password>] [options] |
66 | 67 | ios ps [options] |
@@ -106,6 +107,9 @@ The commands work as following: |
106 | 107 | ios devicestate enable <profileTypeId> <profileId> [options] Enables a profile with ids (use the list command to see options). It will only stay active until the process is terminated. |
107 | 108 | > Ex. "ios devicestate enable SlowNetworkCondition SlowNetwork3GGood" |
108 | 109 | ios lang [--setlocale=<locale>] [--setlang=<newlang>] [options] Sets or gets the Device language |
| 110 | + ios mobilegestalt <key>... [--plist] [options] Lets you query mobilegestalt keys. Standard output is json but if desired you can get |
| 111 | + > it in plist format by adding the --plist param. |
| 112 | + > Ex.: "ios mobilegestalt MainScreenCanvasSizes ArtworkTraits --plist" |
109 | 113 | ios diagnostics list [options] List diagnostic infos |
110 | 114 | ios pair [--p12file=<orgid>] [--password=<p12password>] [options] Pairs the device. If the device is supervised, specify the path to the p12 file |
111 | 115 | > to pair without a trust dialog. Specify the password either with the argument or |
@@ -185,6 +189,20 @@ The commands work as following: |
185 | 189 | udid, _ := arguments.String("--udid") |
186 | 190 | device, err := ios.GetDevice(udid) |
187 | 191 | exitIfError("error getting devicelist", err) |
| 192 | + conn, _ := diagnostics.New(device) |
| 193 | + b, _ = arguments.Bool("mobilegestalt") |
| 194 | + if b { |
| 195 | + keys := arguments["<key>"].([]string) |
| 196 | + plist, _ := arguments.Bool("--plist") |
| 197 | + resp, _ := conn.MobileGestaltQuery(keys) |
| 198 | + if plist { |
| 199 | + fmt.Printf("%s", ios.ToPlist(resp)) |
| 200 | + return |
| 201 | + } |
| 202 | + jb, _ := json.Marshal(resp) |
| 203 | + fmt.Printf("%s", jb) |
| 204 | + return |
| 205 | + } |
188 | 206 |
|
189 | 207 | if deviceStateCommand { |
190 | 208 | if listCommand { |
|
0 commit comments