Skip to content

feat: add example code snippet to README - #809

Merged
erunion merged 7 commits into
mainfrom
add-code-snippet-to-README
Nov 2, 2023
Merged

feat: add example code snippet to README#809
erunion merged 7 commits into
mainfrom
add-code-snippet-to-README

Conversation

@kanadgupta

Copy link
Copy Markdown
Contributor

馃О Changes

This takes our fantastic example code snippet function and reuses it so we can populate the codegen'd SDK's README.md with example usage. If an example doesn't exist, it falls back to the existing copy:

Add SDK setup information and usage examples here so your users get started in a jiffy! 馃殌

馃К QA & Testing

Right now we call getExampleCodeSnippet() twice every time someone generates an SDK and I'm wondering if there's a better way for us to consolidate.

But otherwise, does everything look good?

there's probably an opportunity here to consolidate stuff since we call this twice
@kanadgupta kanadgupta added enhancement New feature or request area:api Issues related to the `api` CLI, which builds the SDKs labels Nov 2, 2023
Comment thread packages/api/src/lib/suggestedOperations.ts Outdated
@kanadgupta
kanadgupta marked this pull request as ready for review November 2, 2023 16:31
@kanadgupta
kanadgupta marked this pull request as draft November 2, 2023 17:22
@kanadgupta
kanadgupta marked this pull request as ready for review November 2, 2023 17:56
@kanadgupta
kanadgupta requested a review from erunion November 2, 2023 17:56

@erunion erunion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

fantastic addition

@erunion
erunion merged commit aa22328 into main Nov 2, 2023
@erunion
erunion deleted the add-code-snippet-to-README branch November 2, 2023 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:api Issues related to the `api` CLI, which builds the SDKs enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants