Skip to content
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

refactor: separate logic from UI layer #1511

Merged
merged 64 commits into from
Feb 24, 2022
Merged

refactor: separate logic from UI layer #1511

merged 64 commits into from
Feb 24, 2022

Conversation

DanielMSchmidt
Copy link
Contributor

@DanielMSchmidt DanielMSchmidt commented Jan 26, 2022

Summary

The goal of this PR is to separate our CLI rendering from the code that does the work. This makes each part easier to test and provides a stepping stone in the direction of a driving the CLI from node.js.

@DanielMSchmidt DanielMSchmidt force-pushed the refactor-cli branch 7 times, most recently from b059f10 to 8915a03 Compare February 2, 2022 14:47
@DanielMSchmidt DanielMSchmidt force-pushed the refactor-cli branch 9 times, most recently from b7d6e92 to b03f839 Compare February 9, 2022 09:13
@DanielMSchmidt DanielMSchmidt marked this pull request as ready for review February 9, 2022 09:13
@DanielMSchmidt DanielMSchmidt force-pushed the refactor-cli branch 7 times, most recently from afda4ca to 2f64b97 Compare February 15, 2022 12:52
@DanielMSchmidt DanielMSchmidt force-pushed the refactor-cli branch 2 times, most recently from ac2cc33 to 9ab25db Compare February 16, 2022 16:53
Copy link
Member

@ansgarm ansgarm left a comment

Choose a reason for hiding this comment

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

Nice work @DanielMSchmidt 🎉
(a first review, I got through roughly half of it)

packages/cdktf-cli/bin/cmds/ui/components/confirm.tsx Outdated Show resolved Hide resolved
packages/cdktf-cli/bin/cmds/ui/components/error.tsx Outdated Show resolved Hide resolved
packages/cdktf-cli/bin/cmds/ui/deploy.tsx Outdated Show resolved Hide resolved
packages/cdktf-cli/lib/index.ts Outdated Show resolved Hide resolved
packages/cdktf-cli/bin/cmds/ui/deploy.tsx Outdated Show resolved Hide resolved
packages/cdktf-cli/bin/cmds/ui/diff.tsx Outdated Show resolved Hide resolved
packages/cdktf-cli/lib/errors.ts Show resolved Hide resolved
packages/cdktf-cli/lib/get.ts Show resolved Hide resolved
packages/cdktf-cli/test/lib/index.test.ts Outdated Show resolved Hide resolved
test/typescript/multiple-stacks/test.ts Outdated Show resolved Hide resolved
@DanielMSchmidt DanielMSchmidt force-pushed the refactor-cli branch 2 times, most recently from 9f381a7 to cf59062 Compare February 21, 2022 11:39
@DanielMSchmidt DanielMSchmidt merged commit d759eab into main Feb 24, 2022
@DanielMSchmidt DanielMSchmidt deleted the refactor-cli branch February 24, 2022 16:34
@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2022

I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants