fixed typo in Service

This commit is contained in:
Djeeberjr 2023-06-04 14:31:51 +02:00
parent c86d0e1d8b
commit 00a9c8dc4f
3 changed files with 7 additions and 7 deletions

View File

@ -14,7 +14,7 @@ class Service extends CLIAppBase {
var name = args[0];
var result = ServiceManager.instace.start(name);
var result = ServiceManager.instance.start(name);
return handleResult(result);
},"Start a service");
@ -25,7 +25,7 @@ class Service extends CLIAppBase {
var name = args[0];
var result = ServiceManager.instace.stop(name);
var result = ServiceManager.instance.stop(name);
return handleResult(result);
},"Stop a service");
@ -38,7 +38,7 @@ class Service extends CLIAppBase {
var binName = args[1];
var rest = args.slice(2);
var result = ServiceManager.instace.register(name, binName, rest);
var result = ServiceManager.instance.register(name, binName, rest);
return handleResult(result);
},"Register a new service");
@ -49,13 +49,13 @@ class Service extends CLIAppBase {
var name = args[0];
var result = ServiceManager.instace.unregister(name);
var result = ServiceManager.instance.unregister(name);
return handleResult(result);
},"Unregister a service");
registerSyncSubcommand("list", (args) ->{
var list = ServiceManager.instace.listRunning();
var list = ServiceManager.instance.listRunning();
for (name in list) {
this.handle.writeLine(name);

View File

@ -60,6 +60,6 @@ class Init {
KernelEvents.instance.startEventLoop();
});
ServiceManager.instace = new ServiceManager();
ServiceManager.instance = new ServiceManager();
}
}

View File

@ -7,7 +7,7 @@ import lib.KVStore;
using tink.CoreApi;
class ServiceManager {
public static var instace: ServiceManager;
public static var instance: ServiceManager;
private final services:Map<String,Service> = new Map();