Menu

Open issue to practice on: adding a non-interactive mode to a small Node.js CLI

Reddit r/learnjavascript·u/Omar_Gamo·6 days ago
#aRMs793u
#issue#open#practice#interactive#raqule
Reading 0:00
15s threshold

Hey everyone,

I'm a self-taught dev, and I maintain a small open-source Node.js CLI called Raqule. It gathers a project's folder tree and code into a single file you can hand to an LLM.

I just opened an issue for a feature I think is a good one to practice on: a non-interactive mode (-n / --non-interactive), so the CLI can run in CI and scripts without prompting.

What the task involves:

- Parsing CLI flags with commander (including flags that conflict with each other)

- Skipping inquirer prompts when a value is already passed

- Falling back to defaults for anything that isn't passed

- Validating a path early instead of at the end

- Writing tests for the flag combinations

The issue has the full spec: the exact behavior for each flag combination, the error cases, and a checklist, so you can start without guessing what I meant.

Issue: https://github.com/OmarPGH/Raqule/issues/23

If you want a first real PR, or just some practice on a real codebase, grab it.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.