Skip to content

Conversation

@erunion
Copy link
Member

@erunion erunion commented Jul 15, 2023

🚥 Resolves #608

🧰 Changes

This adds a new optional --identifier option to the CLI interface for presetting the identifier you want to use with your generated SDK.

🧬 QA & Testing

This CLI has no unit tests at the moment so I just tested this out manually; notice I was not prompted to enter in an identifier.

Screen Shot 2023-07-14 at 4 57 28 PM

And my debug SDK was installed into .api/apis and will be able to be used as @api/debug:

Screen Shot 2023-07-14 at 4 57 47 PM

@erunion erunion added enhancement New feature or request area:api Issues related to the `api` CLI, which builds the SDKs labels Jul 15, 2023
@erunion erunion marked this pull request as ready for review July 15, 2023 00:11
@erunion erunion requested review from a team, Dashron, darrenyong and domharrington and removed request for a team July 15, 2023 00:11
Copy link
Member

@domharrington domharrington left a comment

Choose a reason for hiding this comment

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

LGTM! Could we prefill the identifier from slug(info.api.title) (or something else?) if they dont provide one? Could we also not prompt them if we detect they're in an environment where we can't accept user input (like CI, or automated installer)?

@erunion
Copy link
Member Author

erunion commented Jul 17, 2023

Could we prefill the identifier from slug(info.api.title) (or something else?) if they dont provide one?

Good idea. #676

Could we also not prompt them if we detect they're in an environment where we can't accept user input (like CI, or automated installer)?

Also a good idea. #677

@erunion erunion merged commit e2af5c8 into main Jul 17, 2023
@erunion erunion deleted the feat/cli-identifier-option branch July 17, 2023 16:22
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.

Add identifier as a cli parameter

3 participants