Represents the core application class for the NestTask application.

Constructors

Properties

logger: Logger = ...

Logger instance for the application.

tasks: Core.Task[] = []

Array to store instances of tasks.

Methods

  • Private

    Retrieves tasks from a specified module and populates the tasks array.

    Parameters

    • module: AnyClass<any, any>

      The module from which to retrieve tasks.

    Returns void

    Method

  • Private

    Handles the "Info" run type by updating the tasks list in the application state.

    Returns Promise<void>

    Return void upon completion

    Method

  • Private

    Handles the execution of tasks when the run type is set to "Run."

    Returns Promise<void>

    A Promise that resolves when the tasks have been executed.

    Async

    Method

  • Asynchronously loads tasks from a specified module.

    Parameters

    • module: AnyClass<any, any>

      The module from which to load tasks.

    Returns Promise<void>

    A Promise that resolves when tasks are loaded.

    Async

    Method

  • Private

    Locates a task class based on the task name provided in command-line arguments.

    Returns undefined | Core.Task

    The located task class or undefined if not found.

    Method

  • Asynchronously runs the NestTask application.

    Returns Promise<void>

    A Promise that resolves when the application has completed running.

    Async

    Method

Generated using TypeDoc