Skip to content

Commit 51f23c3

Browse files
FatmeFatme
authored andcommitted
Merge pull request #401 from NativeScript/fatme/update-with-latest-common-lib
Update to latest common lib
2 parents e87326d + 5315039 commit 51f23c3

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

lib/bootstrap.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,4 @@ $injector.require("lockfile", "./lockfile");
4848
$injector.require("optionsService", "./services/options-service");
4949
$injector.require("dynamicHelpProvider", "./dynamic-help-provider");
5050
$injector.require("mobilePlatformsCapabilities", "./mobile-platforms-capabilities");
51+
$injector.require("commandsServiceProvider", "./providers/commands-service-provider");
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
///<reference path="../.d.ts"/>
2+
"use strict";
3+
import Future = require("fibers/future");
4+
5+
export class CommandsServiceProvider implements ICommandsServiceProvider {
6+
public getDynamicCommands(): IFuture<string[]> {
7+
return Future.fromResult([]);
8+
}
9+
10+
public generateDynamicCommands(): IFuture<void> {
11+
return Future.fromResult();
12+
}
13+
14+
public registerDynamicSubCommands(): void {
15+
16+
}
17+
}
18+
$injector.register("commandsServiceProvider", CommandsServiceProvider);

test/platform-commands.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ function createTestInjector() {
9696
testInjector.registerCommand("platform|remove", PlatformRemoveCommandLib.RemovePlatformCommand);
9797
testInjector.registerCommand("platform|update", PlatformUpdateCommandLib.UpdatePlatformCommand);
9898
testInjector.register("lockfile", { });
99+
testInjector.register("commandsServiceProvider", {
100+
registerDynamicSubCommands: () => {}
101+
});
99102

100103

101104
return testInjector;

0 commit comments

Comments
 (0)