asciidoctor
    Preparing search index...

    Class Invoker

    Executes the CLI after options have been parsed. Extend this class to customize the conversion workflow.

    Index

    Constructors

    Properties

    options: Options

    Methods

    • Internal

      Parameters

      • options: any

      Returns Promise<void>

    • Internal

      Parameters

      • failureLevel: any

      Returns Promise<void>

    • Internal

      Parameters

      • values: any

      Returns void

    • Convert the given files. Override this method to implement custom conversion logic (e.g. PDF generation).

      Parameters

      • files: string[]

        input files to convert

      • options: any

        Asciidoctor convert options built from the CLI flags

      • values: Record<string, unknown>

        all parsed CLI values, including custom options

      Returns Promise<void>

    • Run the CLI: handle --version, --help, stdin, and file conversion.

      Returns Promise<void>

    • Print help to stderr, or the AsciiDoc syntax reference if topic is 'syntax'.

      Parameters

      • Optionaltopic: string

      Returns void

    • Print the version string to stdout.

      Returns void

    • Return the version string printed by --version. Override to prepend your tool's own version.

      Returns string