Home > @momentum-design/common > Execute > emit

Execute.emit() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Emit a string value to CLI.

Signature:

static emit(value: string): void;

Parameters

ParameterTypeDescription
valuestringString value to emit to CLI.

Returns:

void

Remarks

This command can only emit single string primatives, as it directly interfaces with the process.stdout Object instead of using the console Object. The decision to use process.stdout was made to allow the usage of this method for CI/CD workflows.