LearnNewsExamplesServices
Frontmatter
id9048
titleFeat: DevRank CLI Interactive Prompts (Inquirer)
stateClosed
labels
enhancementai
assigneestobiu
createdAtFeb 7, 2026, 11:34 PM
updatedAtFeb 7, 2026, 11:39 PM
githubUrlhttps://github.com/neomjs/neo/issues/9048
authortobiu
commentsCount1
parentIssue8930
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 7, 2026, 11:39 PM

Feat: DevRank CLI Interactive Prompts (Inquirer)

Closed v12.0.0 enhancementai
tobiu
tobiu commented on Feb 7, 2026, 11:34 PM

Enhance the DevRank CLI to support interactive prompts when mandatory arguments are missing.

Current Behavior: Running npm run devrank:add fails immediately because the username argument is mandatory in the CLI definition (add <username>).

Desired Behavior: Running npm run devrank:add without arguments should trigger an interactive prompt: ? Enter GitHub username to add:

Changes:

  1. Refactor apps/devrank/services/Manager.mjs:
    • Change .command('add <username>') to .command('add [username]') to make the argument optional.
    • Import inquirer.
    • In the action handler, check if username is undefined.
    • If undefined, use inquirer.prompt to ask the user for it.
    • Pass the resolved username to runAdd.

Reference: This pattern is already used in buildScripts/build/all.mjs.

tobiu added the enhancement label on Feb 7, 2026, 11:34 PM
tobiu added the ai label on Feb 7, 2026, 11:34 PM
tobiu added parent issue #8930 on Feb 7, 2026, 11:35 PM
tobiu assigned to @tobiu on Feb 7, 2026, 11:37 PM
tobiu referenced in commit 1b451a2 - "feat: DevRank CLI Interactive Prompts (Inquirer) (#9048)" on Feb 7, 2026, 11:39 PM
tobiu
tobiu Feb 7, 2026, 11:39 PM

Input from Gemini 3 Pro:

✦ Enhanced the CLI with interactive prompts using inquirer.

Changes

  • Updated apps/devrank/services/Manager.mjs:
    • Changed .command('add <username>') to .command('add [username]') to make the argument optional.
    • Added logic to prompt for username if it's missing when running the command.

Verification

  • Running npm run devrank:add without arguments now prompts: ? Enter GitHub username to add: instead of failing.

Code committed to dev branch.

tobiu closed this issue on Feb 7, 2026, 11:39 PM