Skip to content

Conversation

@kanadgupta
Copy link
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
@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
Copy link
Member

@erunion erunion left a comment

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.

3 participants