mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-27 12:50:43 +00:00
Add support for `service api on/off` commands. Deprecate commands `api start/stop` in favor of `service api on/off`. `service api on` - Enables the API server serving Cockpit. Shows an error if the API server is already starting or started. `service api off` - Disables the API server serving Cockpit. Shows an error if the API server is already stopping or stopped. `api start` - This command has been deprecated in favor of `service api on` and will be removed in future versions. `api stop` - This command has been deprecated in favor of `service api off` and will be removed in future versions. `api:start` - This event has been deprecated and will be removed in future versions. `api:stop` - This event has been deprecated and will be removed in future versions.
6 lines
143 B
TypeScript
6 lines
143 B
TypeScript
export interface Logger {
|
|
info(text: string): void;
|
|
warn(text: string): void;
|
|
error(text: string, ...args: Array<string|Error>): void;
|
|
}
|