@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
52 lines (51 loc) • 1.34 kB
TypeScript
export interface Options {
powerShellModuleName: string;
name: string;
basePath: string;
generatedPath: string;
noComments: boolean;
validate: boolean;
jea: boolean;
resourceName?: string;
prefixName?: string;
}
export interface Group {
[index: string]: string;
}
export interface Groups {
[index: string]: Group;
}
export declare class PsCodeConverter {
private options;
static defaultGroup: string;
static generatedGroup: string;
static verbs: string[];
private static fullNames;
private static removeCommentsTrue;
private static removeCommentsFalse;
private static skipCheckTrue;
private static skipCheckFalse;
private static commentStart;
private static commentEnd;
private static comment;
private static openContent;
private static closeContent;
private static hereTextBegin;
private static hereTextEnd;
private buffer;
private jeaErrorDisplayOnce;
constructor(options: Options);
get content(): string;
contentReset(): void;
generate(groups: Groups): void;
private toJsonName;
private toCommandName;
private toPascalName;
private regexEscape;
private replaceAll;
private addBeginGroup;
private addEndGroup;
private addToContent;
private addData;
private indent;
}