commandExists should return boolean instead of rejecting
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 42/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- cli
Research direction
Start at the commandExists entry point and inspect how the promise handles a missing command versus an actual checking error. Verify that a missing command resolves to true or false for async/await callers, while genuine checking errors still reject; add or update tests if the repository provides them.
Written by the indexing model from the issue text.
Description
Unless there was an error with checking if the command exists. It would make more sense and be more idiomatic to have a resolve(true/false) rather than rejecting in the case of the command not existing. This also means you can use async/await syntax: const exists = await commandExists('the-command')
- Dominant language
- JavaScript
- Stars
- 147
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mathisonian/command-exists
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
mathisonian/command-exists#35 · 4 comments · 2 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
mathisonian/command-exists#34 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 28/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
mathisonian/command-exists#32 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 40/100
All issues in mathisonian/command-exists
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·