CLASS BuildCommand

Build Command will build the site based on the source files.

Public Methods

Run

public int Run()

Run the command

Returns: int

Create

public static Task<int> Create(BuildOptions options, ILogger logger)

Creates and executes a new BuildCommand instance

Parameters:

  • options (BuildOptions): The build options
  • logger (ILogger): The logger instance

Returns: Task<int>

  • A task with the result code (0 for success, 1 for failure)

CopyFolder

public void CopyFolder(string source, string output)

Copy a folder content from source into the output folder.

Parameters:

  • source (string): The source folder to copy from.
  • output (string): The output folder to copy to.