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

feat(cli): stdout option for cdk8s synth #361

Merged
merged 15 commits into from
Nov 19, 2020

Conversation

campionfellin
Copy link
Contributor

Closes #92

Signed-off-by: campionfellin [email protected]

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

packages/cdk8s-cli/src/cli/cmds/synth.ts Outdated Show resolved Hide resolved
packages/cdk8s/src/app.ts Outdated Show resolved Hide resolved
packages/cdk8s-cli/src/cli/cmds/synth.ts Outdated Show resolved Hide resolved
packages/cdk8s-cli/src/cli/cmds/synth.ts Outdated Show resolved Hide resolved
packages/cdk8s-cli/src/cli/cmds/synth.ts Outdated Show resolved Hide resolved
packages/cdk8s-cli/src/cli/cmds/synth.ts Outdated Show resolved Hide resolved
packages/cdk8s-cli/src/cli/cmds/synth.ts Outdated Show resolved Hide resolved
@@ -32,6 +32,35 @@ export async function mkdtemp(closure: (dir: string) => Promise<void>) {
}
}

export async function callLibrary(command: string, outdir: string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Rename to synthApp and combine with validateSynthesis

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please also write a small unit test for this?

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 wrote a couple of example tests, if you think that's the kind of style we want there I can fill them out a bit more!

packages/cdk8s-cli/src/cli/cmds/synth.ts Show resolved Hide resolved
Copy link
Contributor

@eladb eladb left a comment

Choose a reason for hiding this comment

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

nice and clean

@mergify
Copy link
Contributor

mergify bot commented Nov 19, 2020

Your pull request will be updated and merged automatically (do not update manually).

@mergify mergify bot merged commit bbf116b into cdk8s-team:master Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Suggestion] allow cdk8s synth to print to stdout
3 participants