forked from danielpaulus/go-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcmd_device_registry.go
More file actions
88 lines (86 loc) · 3.36 KB
/
Copy pathcmd_device_registry.go
File metadata and controls
88 lines (86 loc) · 3.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package main
import "github.com/docopt/docopt-go"
var deviceCommands = []command{
commandByBool("activate", runActivateCommand),
commandByBool("ip", runIPCommand),
commandByBool("pcap", runPCAPCommand),
commandByBool("ps", runPSCommand),
{
name: "install",
match: func(args docopt.Opts) bool {
return boolArg(args, "install") && !boolArg(args, "ui")
},
run: runInstallCommand,
},
commandByBool("sign", runSignCommand),
{
name: "ui install",
match: func(args docopt.Opts) bool {
return boolArg(args, "ui") && boolArg(args, "install")
},
run: runUIInstallCommand,
},
{
name: "ui run",
match: func(args docopt.Opts) bool {
return boolArg(args, "ui") && boolArg(args, "run")
},
run: runUIRunCommand,
},
commandByBool("uninstall", runUninstallCommand),
commandByBool("lang", runLangCommand),
commandByBool("dproxy", runDproxyCommand),
commandByBool("info", runInfoCommand),
commandByBool("syslog", runSyslogCommand),
commandByBool("ostrace", runOSTraceCommand),
commandByBool("screenshot", runScreenshotCommand),
commandByBool("resetlocation", runResetLocationCommand),
commandByBool("devicename", runDeviceNameCommand),
commandByBool("apps", runAppsCommand),
commandByBool("date", runDateCommand),
commandByBool("diagnostics", runDiagnosticsCommand),
commandByBool("pair", runPairCommand),
commandByBool("readpair", runReadPairCommand),
commandByBool("batteryregistry", runBatteryRegistryCommand),
commandByBool("reboot", runRebootCommand),
commandByBool("shutdown", runShutdownCommand),
commandByBool("diskspace", runDiskspaceCommand),
commandByBool("batterycheck", runBatteryCheckCommand),
commandByBool("erase", runEraseCommand),
commandByBool("rsd", runRSDCommand),
commandByBool("mobilegestalt", runMobileGestaltCommand),
commandByBool("devicestate", runDeviceStateCommand),
commandByBool("wifi", runWifiCommand),
commandByBool("prepare", runPrepareCommand),
commandByBool("set-wallpaper", runSetWallpaperCommand),
commandByBool("get-wallpaper", runGetWallpaperCommand),
commandByBool("get-icon-layout", runGetIconLayoutCommand),
commandByBool("set-icon-layout", runSetIconLayoutCommand),
commandByBool("crash", runCrashCommand),
commandByBool("instruments", runInstrumentsCommand),
commandByBool("image", runImageCommand),
commandByBool("assistivetouch", runAssistiveTouchCommand),
commandByBool("voiceover", runVoiceOverCommand),
commandByBool("zoom", runZoomCommand),
commandByBool("lockdown", runLockdownCommand),
commandByBool("setlocation", runSetLocationCommand),
commandByBool("setlocationgpx", runSetLocationGPXCommand),
commandByBool("timeformat", runTimeFormatCommand),
commandByBool("httpproxy", runHTTPProxyCommand),
commandByBool("profile", runProfileCommand),
commandByBool("forward", runForwardCommand),
commandByBool("launch", runLaunchCommand),
commandByBool("sysmontap", runSysmontapCommand),
commandByBool("memlimitoff", runMemlimitOffCommand),
commandByBool("kill", runKillCommand),
commandByBool("runtest", runTestCommand),
commandByBool("runxctest", runXCTestCommand),
commandByBool("runwda", runWDACommand),
commandByBool("ax", runAXCommand),
commandByBool("resetax", runResetAXCommand),
commandByBool("debug", runDebugCommand),
commandByBool("file", runFileCommand),
commandByBool("fsync", runFsyncCommand),
commandByBool("devmode", runDevModeCommand),
commandByBool("webinspector", runWebInspectorCommand),
}