Skip to content

fix(scripts): prevent incorrect run conditions #731

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

Merged
merged 3 commits into from
Jun 23, 2022
Merged

Conversation

shortcuts
Copy link
Member

🧭 What and Why

🎟 JIRA Ticket: -

Changes included:

There was some combination that we could execute in our CLI that were not possible (java algoliasearch, php lite, etc.) due to the special JavaScript cases.

We now restrict those usage to avoid unwanted behaviors.

Other changes in this PR

  • Define flags and arguments usage to avoid duplicate informations at command level
  • Move index.ts. to a cli folder to ease folder structure
  • Allow skipping utils build for JavaScript

🧪 Test

  • CI :D
  • Run commands locally

@shortcuts shortcuts self-assigned this Jun 22, 2022
@netlify
Copy link

netlify bot commented Jun 22, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit 06fb7c0
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/62b47d21121c7e000b449644

@algolia-bot
Copy link
Collaborator

algolia-bot commented Jun 22, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.
You can still access the code generated on main via this commit.

@shortcuts shortcuts force-pushed the feat/javascript-nested-algoliasearch-lite branch 2 times, most recently from 28b800a to 653ccb0 Compare June 22, 2022 13:28
@shortcuts shortcuts force-pushed the fix/run-condition-cli branch 2 times, most recently from 3ff8806 to d960c98 Compare June 22, 2022 13:40
Base automatically changed from feat/javascript-nested-algoliasearch-lite to main June 22, 2022 14:20
@shortcuts shortcuts force-pushed the fix/run-condition-cli branch from d960c98 to 1ebfdb4 Compare June 22, 2022 14:38
@shortcuts shortcuts changed the title fix(scripts): prevent incorrect run coditions fix(scripts): prevent incorrect run conditions Jun 22, 2022
@shortcuts shortcuts force-pushed the fix/run-condition-cli branch from 1ebfdb4 to 37eb338 Compare June 23, 2022 07:35
@shortcuts shortcuts marked this pull request as ready for review June 23, 2022 07:35
@shortcuts shortcuts requested review from a team, damcou and millotp and removed request for a team June 23, 2022 08:04
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

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

Looks very clean, nice refacto :)

.filter(Boolean);
}

export async function prompt({
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure if anyone will ever use this feature ahah, I did it for fun but it should not become a pain to maintain

Copy link
Member Author

Choose a reason for hiding this comment

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

I sometimes do when I'm lazy to type things D:

Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

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

I mean all all ahah.
At this point maybe you could rename PROMPT_ALL to ALL

@shortcuts
Copy link
Member Author

I mean all all ahah. At this point maybe you could rename PROMPT_ALL to ALL

oopsie 06fb7c0

Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

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

perfect !

@shortcuts shortcuts enabled auto-merge (squash) June 23, 2022 14:57
@shortcuts shortcuts merged commit 0662eaa into main Jun 23, 2022
@shortcuts shortcuts deleted the fix/run-condition-cli branch June 23, 2022 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants