Skip to content

Commit

Permalink
fix(go): improve docs for deprecated packages (#391)
Browse files Browse the repository at this point in the history
Signed-off-by: team-tf-cdk <[email protected]>
Co-authored-by: team-tf-cdk <[email protected]>
  • Loading branch information
xiehan and team-tf-cdk authored Jan 10, 2024
1 parent bf89515 commit ca367f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ export class CdktfProviderProject extends cdk.JsiiProject {
run: [
"sed -i 's/# CDKTF prebuilt bindings for/# CDKTF Go bindings for/' .repo/dist/go/*/README.md",
// @see https://stackoverflow.com/a/49511949
"sed -i -e '/## Available Packages/,/### Go/!b' -e '/### Go/!d;p; s/### Go/## Go Package/' -e 'd' .repo/dist/go/*/README.md",
// eslint-disable-next-line prettier/prettier
`sed -i -e '/## ${isDeprecated ? 'Deprecated' : 'Available'} Packages/,/### Go/!b' -e '/### Go/!d;p; s/### Go/## Go Package/' -e 'd' .repo/dist/go/*/README.md`,
// sed -e is black magic and for whatever reason the string replace doesn't work so let's try it again:
// eslint-disable-next-line prettier/prettier
`sed -i 's/### Go/## ${isDeprecated ? 'Deprecated' : 'Go'} Package/' .repo/dist/go/*/README.md`,
Expand Down
2 changes: 1 addition & 1 deletion test/__snapshots__/index.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ca367f2

Please sign in to comment.