Skip to main content

InitTemplateBase.isInteractive property

Flag indicating whether the template is running in interactive mode.

Signature

isInteractive: boolean;

Remarks

This flag determines whether the template execution involved user interaction through terminal prompts for missing mandatory property values.

State management:

  1. Initialised to false upon construction.
  2. Set to true in [InitTemplateBase.run()](/xpm-lib-ts/docs/api/xpm-lib/classes/inittemplatebase/run) if at least one mandatory property was missing and required interactive prompting.
  3. Set to false if all mandatory properties were provided via command-line options.

When interactive mode is activated, the context start time is reset after user input to exclude interactive time from performance metrics, ensuring accurate measurement of the template processing duration.


Generated via tsdoc2docusaurus 1.3.2 by API Extractor/Documenter 7.57.2.