-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(toolkit): request response #32926
Conversation
export function markTesting() { | ||
TESTING = true; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assume this would still be necessary when we test
motivation: string, | ||
question: string, | ||
) { | ||
await withCorkedLogging(async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#32898 needs to be implemented before we can get rid of this, right?
throw new ToolkitError(`${motivation}, but concurrency is greater than 1 so we are unable to get a confirmation from the user`); | ||
} | ||
|
||
const confirmed = await ioHost.requestResponse<any, boolean>(prompt(`${chalk.cyan(question)} (y/n)?`)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not too sure what to do here. prompt
currently is nothing and a build failure atm. should this be written in aws-cdk/lib/logging.ts
?
Comments on closed issues and PRs are hard for our team to see. |
adds a helper method named
askUserConfirmation
which usesioHost.requestResponse
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license