Commit e0f9a6f
authored
feat(toolkit-lib): default to using a non interactive IoHost (#306)
Replaces the current default `IoHost` which is the same as the one used
by the CLI with a strictly non-interactive version. This is more in
accordance with the goals of a library providing actions.
Fixes #157
Closes #289
BREAKING CHANGE: This change updates the default `IoHost` implementation
used by `Toolkit` to a version that is strictly non-interactive, i.e.
there is no expectation anymore that users will respond to command-line
prompts. To restore previous behavior, you will can provide a custom
`IoHost` implementation to your `Toolkit` instance. You may consider
extending the new `NonInteractiveIoHost` class with desired interactive
prompts.
---
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license1 parent 73e5ad4 commit e0f9a6f
File tree
22 files changed
+486
-48
lines changed- packages
- @aws-cdk
- tmp-toolkit-helpers
- .projen
- src/private
- activity-printer
- test
- _helpers
- activity-monitor
- toolkit-lib/lib
- api
- toolkit
- util
- aws-cdk/lib
- api/hotswap
- cli/io-host
22 files changed
+486
-48
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
681 | 681 | | |
682 | 682 | | |
683 | 683 | | |
| 684 | + | |
| 685 | + | |
684 | 686 | | |
685 | 687 | | |
686 | 688 | | |
687 | 689 | | |
688 | 690 | | |
| 691 | + | |
689 | 692 | | |
690 | 693 | | |
691 | 694 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | | - | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments