chalk#blueBright TypeScript Examples

The following examples show how to use chalk#blueBright. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: preview.ts    From cli with Apache License 2.0 6 votes vote down vote up
private async displayAdditionalErrorMessage(
    err?: Error & {exitCode?: number}
  ) {
    if (err instanceof SnapshotOperationTimeoutError) {
      const {flags} = await this.parse(Preview);
      const snapshot = err.snapshot;
      const target = await getTargetOrg(this.configuration, flags.organization);
      this.log(
        dedent`

          Once the snapshot is created, you can preview it with the following command:

            ${blueBright`coveo org:resources:preview -t ${target} -s ${snapshot.id}`}

            `
      );
    }
  }
Example #2
Source File: pull.ts    From cli with Apache License 2.0 6 votes vote down vote up
private async displayAdditionalErrorMessage(
    err?: Error & {exitCode?: number}
  ) {
    if (err instanceof SnapshotOperationTimeoutError) {
      const snapshot = err.snapshot;
      const target = await this.getTargetOrg();
      this.log(
        dedent`

          Once the snapshot is created, you can pull it with the following command:

            ${blueBright`coveo org:resources:pull -t ${target} -s ${snapshot.id}`}

            `
      );
    }
  }
Example #3
Source File: snapshotErrors.ts    From cli with Apache License 2.0 6 votes vote down vote up
public constructor(public snapshot: Snapshot) {
    super(SeverityLevel.Info);
    this.message = dedent`${
      snapshot.latestReport.type
    } operation is taking a long time to complete.
    Run the following command to monitor the operation:

      ${blueBright`coveo org:resources:monitor ${snapshot.id} -t ${snapshot.targetId}`}`;
  }
Example #4
Source File: logger.ts    From anchorcli with Apache License 2.0 5 votes vote down vote up
export function info(text: string) {
  console.log(bold(white(bgBlueBright(' INFO '))) + ' ' + blueBright(text));
}