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(cli): add --eval flag #50

Merged
merged 1 commit into from
Jul 26, 2022
Merged

feat(cli): add --eval flag #50

merged 1 commit into from
Jul 26, 2022

Conversation

Kikobeats
Copy link
Member

@Kikobeats Kikobeats commented Jul 26, 2022

This PR introduces --eval flag to run any inline script:

e.g.,:

$ edge-runtime --eval 'JSON.stringify(Object.getOwnPropertyNames(this))'

It's pretty similar to node --eval

closes #34

@vercel
Copy link

vercel bot commented Jul 26, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
edge-runtime ✅ Ready (Inspect) Visit Preview Jul 26, 2022 at 7:19PM (UTC)

Copy link

@nuta nuta left a comment

Choose a reason for hiding this comment

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

How about supporting this as the short -e flag too? 😄

BTW, I think it would be better to create a separate PR for unrelate changes.

packages/primitives/src/primitives/cache.js Outdated Show resolved Hide resolved
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.

cli broken since beta.11
2 participants