MarkdownlintAliases.

RunMarkdownlintNodeJs(ICakeContext, MarkdownlintNodeJsRunnerSettings) Method

Summary

Runs Node.js markdownlint-cli with specified settings.
Assembly
Cake.Markdownlint.dll
Namespace
Cake.Markdownlint
Containing Type
MarkdownlintAliases

Syntax

public static void RunMarkdownlintNodeJs(this ICakeContext context, MarkdownlintNodeJsRunnerSettings settings)

Examples

Define working directory and output file:

var settings =
        MarkdownlintNodeJsRunnerSettings.ForDirectory(@"c:\myproject");
    setting.OutputFile = @"c:\myprojects\logs\markdownlint.log";
    RunMarkdownlintNodeJs(settings);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings MarkdownlintNodeJsRunnerSettings Settings for running Markdownlint.

Return Value

Type Description
void