Skip to content

Commit 52dc4f5

Browse files
author
Tsvetan Raikov
committed
Fixed: tns devices <platform> throws an exception
1 parent 4e02f60 commit 52dc4f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/commands/devices.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
export class DevicesCommand implements ICommand {
22

3-
public allowedParameters: ICommandParameter[] = [];
3+
constructor(private $stringParameter: ICommandParameter) {}
4+
5+
public allowedParameters: ICommandParameter[] = [this.$stringParameter];
46

57
public execute(args: string[]): IFuture<void> {
68
return $injector.resolveCommand("device").execute(args);

0 commit comments

Comments
 (0)