mirror of
https://github.com/github/codeql-action.git
synced 2025-12-26 17:20:10 +08:00
16 lines
351 B
JavaScript
16 lines
351 B
JavaScript
import {Chalk} from 'chalk'; // eslint-disable-line unicorn/import-style
|
|
|
|
let chalk = new Chalk(); // eslint-disable-line import/no-mutable-exports
|
|
|
|
export {chalk};
|
|
|
|
let configured = false;
|
|
export function set(options) {
|
|
if (configured) {
|
|
throw new Error('Chalk has already been configured');
|
|
}
|
|
|
|
configured = true;
|
|
chalk = new Chalk(options);
|
|
}
|