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: add example code snippet to README #809

Merged
merged 7 commits into from
Nov 2, 2023
Merged

Conversation

kanadgupta
Copy link
Member

🧰 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?

@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
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
5 checks passed
@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