ApiGeneratorCommand
- Namespace: SuCoS.Commands.API
- Source File: ApiGeneratorCommand.cs
Check links of a given site.
Public Methods
Create
public static Task<int> Create(ApiGeneratorOptions options, ILogger logger, IFileSystem fileSystem)
Creates and executes a new NewSiteCommand instance
Parameters:
options(ApiGeneratorOptions): The new site optionslogger(ILogger): The logger instancefileSystem(IFileSystem)
Returns: Task<int>
- A task with the result code (0 for success, 1 for failure)
Run
public static ApiGeneratorCommand Run(ApiGeneratorOptions options, ILogger logger, IFileSystem fileSystem)
Creates a new instance of NewSiteCommand with the specified options, logger, and file system.
Parameters:
options(ApiGeneratorOptions)logger(ILogger)fileSystem(IFileSystem)
Returns: ApiGeneratorCommand
Run
public async Task<int> Run()
Run the app
Returns: Task<int>