Skip to content

Commit 62b6245

Browse files
author
Tsvetan Raikov
committed
Added devices alias for device command
1 parent e91ff20 commit 62b6245

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

lib/bootstrap.ts

+2
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,5 @@ $injector.require("iOSNotification", "./device-sockets/ios/notification");
117117
$injector.require("iOSSocketRequestExecutor", "./device-sockets/ios/socket-request-executor");
118118
$injector.require("messages", "./common/messages/messages");
119119
$injector.require("xmlValidator", "./xml-validator");
120+
121+
$injector.requireCommand("devices", "./commands/devices");

lib/commands/devices.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export class DevicesCommand implements ICommand {
2+
3+
public allowedParameters: ICommandParameter[] = [];
4+
5+
public execute(args: string[]): IFuture<void> {
6+
return $injector.resolveCommand("device").execute(args);
7+
}
8+
}
9+
$injector.registerCommand("devices", DevicesCommand);

0 commit comments

Comments
 (0)