Implements

  • ICliCommandProcessor

Constructors

Properties

author: ICliCommandAuthor = DefaultLibraryAuthor

The author of the command

command: string = 'todo'

The command that this processor handles

description: string = 'A command-line tool for managing your tasks efficiently. Add, list, complete, and remove TODO items with simple commands.'

A description of the command

metadata?: CliProcessorMetadata = ...

The metadata for the command processor

processors?: ICliCommandProcessor[] = []

Processors that are nested under this processor

stateConfiguration?: CliStateConfiguration = ...

Represents the state configuration for the command processor

The state configuration is used to store and retrieve state information for the command processor

version: string = LIBRARY_VERSION

The version of the command processor

'1.0.0'

Methods

  • Initialize the command processor

    Parameters

    • context: ICliExecutionContext

      The context in which the command is executed

    Returns Promise<void>

  • Process the command

    Parameters

    • command: CliProcessCommand

      The command to process

    • context: ICliExecutionContext

      The context in which the command is executed

    Returns Promise<void>

  • Write the description of the command

    Parameters

    • context: ICliExecutionContext

      The context in which the command is executed

    Returns void