elsaland / elsa

❄️ Elsa is a minimal runtime for JavaScript and TypeScript written in Go
MIT License
2.8k stars 62 forks source link

cmd: run file on args[0] if calling elsa without command #55

Closed codenoid closed 4 years ago

codenoid commented 4 years ago

friendly for existing node user (node file.js), so they can adapt quickly with elsa

littledivy commented 4 years ago

I thought about doing this but wanted it to be more explicit. This could cause confusion or it could lead to no one actually using the run subcommand. cc @qu4k

notfilippo commented 4 years ago

I am in favour of what @littledivy says. I get your point but with elsa, following Deno's path, we are trying to develop a more unified development workflow with various options that take the form of subcommands to elsa: fmt dev pkg ... Having a run command separated from all the other tools makes it more explicit. Adapting the run on args[0] could also limit out options in the future to expand our cli.

codenoid commented 4 years ago

highly appreciate elsa to be more explicit on CLI :clap: