-
Notifications
You must be signed in to change notification settings - Fork 297
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
Conversation
cdk8s-team#92 Signed-off-by: campionfellin <[email protected]>
Signed-off-by: campionfellin <[email protected]>
Co-authored-by: Elad Ben-Israel <[email protected]>
Signed-off-by: campionfellin <[email protected]>
packages/cdk8s-cli/src/util.ts
Outdated
@@ -32,6 +32,35 @@ export async function mkdtemp(closure: (dir: string) => Promise<void>) { | |||
} | |||
} | |||
|
|||
export async function callLibrary(command: string, outdir: string) { |
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.
Rename to synthApp
and combine with validateSynthesis
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.
Can you please also write a small unit test for this?
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.
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!
Signed-off-by: campionfellin <[email protected]>
Signed-off-by: campionfellin <[email protected]>
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.
nice and clean
Your pull request will be updated and merged automatically (do not update manually). |
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