diff --git a/src/bin/Service.hx b/src/bin/Service.hx index 93162ea..33ebc8b 100644 --- a/src/bin/Service.hx +++ b/src/bin/Service.hx @@ -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); diff --git a/src/kernel/Init.hx b/src/kernel/Init.hx index 3edad9b..03ea972 100644 --- a/src/kernel/Init.hx +++ b/src/kernel/Init.hx @@ -60,6 +60,6 @@ class Init { KernelEvents.instance.startEventLoop(); }); - ServiceManager.instace = new ServiceManager(); + ServiceManager.instance = new ServiceManager(); } } diff --git a/src/kernel/service/ServiceManager.hx b/src/kernel/service/ServiceManager.hx index b77eb2d..9f05544 100644 --- a/src/kernel/service/ServiceManager.hx +++ b/src/kernel/service/ServiceManager.hx @@ -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 = new Map();