denox icon indicating copy to clipboard operation
denox copied to clipboard

Provide a meta-command to output interpolated deno command strings

Open jsejcksn opened this issue 5 years ago • 2 comments

Issue Type

  • Feature Request

This screenshot is shown in the readme:

denox in terminal

After running the command, it shows this text in stdout:

Running main script with allow-read, seed and reload options ...

This doesn't appear in the current version of denox. I don't know why for certain, but I agree that it shouldn't be in stdout for multiple reasons.

However, this is the core functionality of denox: to interpolate commands for proxying to deno.

It would be extremely useful for denox to provide the interpolated command strings using a prefix like command, for example:

deno-workspace.yaml

scripts:
  main:
    file: main.ts
    deno_options:
      allow-net: example.com
      unstable: true
> denox command run main script args
deno run --allow-net=example.com --unstable main.ts script args

This would be useful for understanding how denox is parsing the workspace file and could potentially help to debug denox in the future.

Info

  • DenoX version: 0.4.0

jsejcksn avatar Jun 29 '20 01:06 jsejcksn

@BentoumiTech Thoughts?

jsejcksn avatar Jul 09 '20 08:07 jsejcksn

It's a great addition @jsejcksn, I think it does make total sense to have it.

I'll work something out this week for this.

BentoumiTech avatar Aug 11 '20 07:08 BentoumiTech