feat(dev-infra): add logic for printing active release trains (#38656)

Adds a method for printing active release trains for a configured
project. This is helpful for the release tool that will print
the active release trains. Also this can be useful for the
caretaker status command, where we could print the active
version branches (i.e. "is there currently a feature-freeze branch").

PR Close #38656
This commit is contained in:
Paul Gschwendtner
2020-09-09 14:48:36 +02:00
committed by Alex Rickabaugh
parent caa7f9808f
commit 474ecf6d00
2 changed files with 81 additions and 0 deletions

View File

@ -20,6 +20,7 @@ export const red: typeof chalk = chalk.red;
export const green: typeof chalk = chalk.green;
export const yellow: typeof chalk = chalk.yellow;
export const bold: typeof chalk = chalk.bold;
export const blue: typeof chalk = chalk.blue;
/** Prompts the user with a confirmation question and a specified message. */
export async function promptConfirm(message: string, defaultValue = false): Promise<boolean> {