CLASS NewSiteCommand
- Namespace: SuCoS.Commands
- Source File: NewSiteCommand.cs
Check links of a given site.
Public Methods
Create
public static Task<int> Create(NewSiteOptions options, ILogger logger)
Creates and executes a new NewSiteCommand instance
Parameters:
options(NewSiteOptions): The new site optionslogger(ILogger): The logger instance
Returns: Task<int>
- A task with the result code (0 for success, 1 for failure)
Run
public static NewSiteCommand Run(NewSiteOptions options, ILogger logger, IFileSystem fileSystem)
Generate the needed data for the class
Parameters:
options(NewSiteOptions)logger(ILogger)fileSystem(IFileSystem)
Returns: NewSiteCommand
Run
public int Run()
Run the app
Returns: int