BentoumiTech / BentoumiTech/denox

Provide a meta-command to output interpolated deno command strings

Open
#18 2 comments 0 reactions 0 assignees View on GitHub
Status: Accepted Type: Enhancement
Dominant language
TypeScript
Stars
135
Forks
11
PR merge metrics
No merged PRs in 30d

Description

## Issue Type

- Feature Request

This screenshot is shown in the readme:

![denox in terminal](https://raw.githubusercontent.com/BentoumiTech/denox/7774ec1709bdfc5b9dc756a6b4642ac849274455/.github/img/screenshot-example.png)

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`
```yaml
scripts:
main:
file: main.ts
deno_options:
allow-net: example.com
unstable: true
```

```shell
> 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`

Contributor guide

Open the contributing guide

Research direction

Read the CLI command handling and workspace interpolation logic, using the deno-workspace.yaml example in the issue as the starting case. Add a command prefix that prints the interpolated Deno command, then verify that the example produces the shown deno run invocation with its arguments.

Written by the indexing model from the issue text.

Assessment

Tech stack
deno, typescript
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.