Skip to content

Conversation

@mrgrain
Copy link
Contributor

@mrgrain mrgrain commented May 19, 2025

Relates to #396

Considering this a bug fix, since it is currently not possible to integrate an IoHost with this. While this does affect the CLI, the DX is virtually unchanged. I run the auth test suite to ensure everything is still working as expected.

Before:

before

After:

after

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@aws-cdk-automation aws-cdk-automation requested a review from a team May 19, 2025 12:42
@github-actions github-actions bot added the p2 label May 19, 2025
@mrgrain mrgrain force-pushed the mrgrain/fix/toolkit-lib/no-promptly-mfa branch from 5f6bc9f to fd4d7ae Compare May 19, 2025 12:45
@mrgrain mrgrain force-pushed the mrgrain/fix/toolkit-lib/no-promptly-mfa branch from af6d4ac to a33350f Compare May 19, 2025 12:52
@codecov-commenter
Copy link

codecov-commenter commented May 19, 2025

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 79.59%. Comparing base (1445ba1) to head (46292d4).

Files with missing lines Patch % Lines
packages/aws-cdk/lib/cli/io-host/cli-io-host.ts 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #508      +/-   ##
==========================================
+ Coverage   78.98%   79.59%   +0.61%     
==========================================
  Files          46       46              
  Lines        6994     6998       +4     
  Branches      775      785      +10     
==========================================
+ Hits         5524     5570      +46     
+ Misses       1452     1407      -45     
- Partials       18       21       +3     
Flag Coverage Δ
suite.unit 79.59% <80.00%> (+0.61%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mrgrain mrgrain force-pushed the mrgrain/fix/toolkit-lib/no-promptly-mfa branch from 57f92d8 to 0fec7f9 Compare May 19, 2025 17:08
const desc = responseDescription ?? prompt.default;
const answer = await promptly.prompt(`${chalk.cyan(msg.message)}${desc ? ` (${desc})` : ''}`, {
default: prompt.default,
trim: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot imagine a situation we don't want to trim input. At least none of the current prompts want untrimmed.

@mrgrain mrgrain force-pushed the mrgrain/fix/toolkit-lib/no-promptly-mfa branch from 0fec7f9 to 312e23e Compare May 20, 2025 09:42
@mrgrain mrgrain temporarily deployed to integ-approval May 20, 2025 09:43 — with GitHub Actions Inactive
@mrgrain mrgrain force-pushed the mrgrain/fix/toolkit-lib/no-promptly-mfa branch from 312e23e to 76c10d2 Compare May 20, 2025 11:43
@mrgrain mrgrain temporarily deployed to integ-approval May 20, 2025 11:43 — with GitHub Actions Inactive
@mrgrain mrgrain temporarily deployed to integ-approval May 20, 2025 13:57 — with GitHub Actions Inactive
@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue May 20, 2025
Merged via the queue into main with commit d452163 May 20, 2025
21 checks passed
@aws-cdk-automation aws-cdk-automation deleted the mrgrain/fix/toolkit-lib/no-promptly-mfa branch May 20, 2025 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants