8000 Rename html-help-service.ts to html-service.ts · telerik/mobile-cli-lib@b5fe5ff · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit b5fe5ff

Browse files
Rename html-help-service.ts to html-service.ts
As the injected dependency, class and interface have been renamed, rename the file as well.
1 parent c93c34b commit b5fe5ff

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

bootstrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ $injector.require("dynamicHelpService", "./services/dynamic-help-service");
9292
$injector.require("microTemplateService", "./services/micro-templating-service");
9393
$injector.require("mobileHelper", "./mobile/mobile-helper");
9494
$injector.require("devicePlatformsConstants", "./mobile/device-platforms-constants");
95-
$injector.require("helpService", "./services/html-help-service");
95+
$injector.require("helpService", "./services/help-service");
9696
$injector.require("messageContractGenerator", "./services/message-contract-generator");
9797
$injector.require("proxyService", "./services/proxy-service");
9898
$injector.require("credentialsService", "./services/credentials-service");

declarations.d.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -958,13 +958,6 @@ interface IMicroTemplateService {
958958
interface IHelpService {
959959
generateHtmlPages(): Promise<void>;
960960

961-
/**
962-
* Gets the help content for a specific command that should be shown on the terminal.
963-
* @param {string} commandName Name of the command for which to read the help.
964-
* @returns {Promise<string>} Help content of the command parsed with all terminal rules applied (stripped content that should be shown only for html help).
965-
*/
966-
getCommandLineHelpForCommand(commandName: string): Promise<string>;
967-
968961
openHelpForCommandInBrowser(commandName: string): Promise<void>;
969962

970963
/**

services/html-help-service.ts renamed to services/help-service.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,12 @@ export class HelpService implements IHelpService {
7474
this.$logger.printMarkdown(help);
7575
}
7676

77-
public async getCommandLineHelpForCommand(commandName: string): Promise<string> {
77+
/**
78+
* Gets the help content for a specific command that should be shown on the terminal.
79+
* @param {string} commandName Name of the command for which to read the help.
80+
* @returns {Promise<string>} Help content of the command parsed with all terminal rules applied (stripped content that should be shown only for html help).
81+
*/
82+
private async getCommandLineHelpForCommand(commandName: string): Promise<string> {
7883
const helpText = await this.readMdFileForCommand(commandName);
7984
const commandLineHelp = (await this.$microTemplateService.parseContent(helpText, { isHtml: false }))
8085
.replace(/&nbsp;/g, " ")

test/unit-tests/services/help-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CommonLoggerStub, ErrorsStub } from "../stubs";
22
import { MicroTemplateService } from "../../../services/micro-templating-service";
3-
import { HelpService } from "../../../services/html-help-service";
3+
import { HelpService } from "../../../services/help-service";
44
import { assert } from "chai";
55
import { EOL } from "os";
66
import { Yok } from '../../../yok';

0 commit comments

Comments
 (0)
0