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: treat bare deno command with run arguments as deno run #24887

Merged
merged 7 commits into from
Aug 8, 2024

Conversation

crowlKats
Copy link
Member

@crowlKats crowlKats commented Aug 5, 2024

removes the necessity for the run subcommand to run scripts

fixes #24493

@crowlKats crowlKats changed the title feat: treat bare deno command with run arguments as deno run feat: treat bare deno command with run arguments as deno run Aug 5, 2024
Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

Tested it - looks great.

Update the deno help text to explain that without a subcommand it defaults to run.

Current text is

A modern JavaScript and TypeScript runtime

Docs: https://deno.land/manual@v1.45.5
Standard Library: https://jsr.io/@std
Modules: https://jsr.io/ https://deno.land/x/
Bugs: https://github.com/denoland/deno/issues


Deno by Example: https://docs.deno.com/examples
  Start the REPL:              deno
  Execute a script:            deno run https://examples.deno.land/hello-world.ts
  Evaluate code in the shell:  deno eval "console.log(30933 + 404)"

I think this could be instead

Deno: a modern JavaScript and TypeScript runtime

docs https://docs.deno.com 
standard library https://jsr.io/@std
bugs https://github.com/denoland/deno/issues

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM 🪨

@crowlKats crowlKats merged commit e7be763 into denoland:main Aug 8, 2024
17 checks passed
@crowlKats crowlKats deleted the deno-bare-run branch August 8, 2024 14:22
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.

Support deno <script>
3 participants