phone-numbers:buy:* commands appear in autocomplete but fail
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript, node.js
- Domain
- cli
Research direction
Start with src/hooks/init/buy-phone-number.js and trace how the dynamically added commands are loaded, then inspect the topic not-found handler described in the issue. Reproduce the autocomplete and purchase commands locally; done means the phone-numbers:buy:* commands execute their intended operation instead of exiting silently.
Written by the indexing model from the issue text.
Description
$ twilio version
twilio-cli/6.2.4 darwin-arm64 node-v20.20.2
$ twilio phone-numbers: <tab>
…-numbers:buy:local (purchase a local phone number)
…-numbers:buy:machine-to-machine (purchase a machine-to-machine phone number)
[...many more supposedly available commands...]
$ twilio phone-numbers:buy:local --country-code US --friendly-name test
[no output, no phone number bought]
It appears the phone-numbers:buy:* commands are generated at startup by an init hook (src/hooks/init/buy-phone-number.js) that pushes a dynamic plugin into config.plugins, but it never calls config.loadCommands() so they don't actually work. And then the not-found handler for the topic just prints nothing and exits.
- Dominant language
- JavaScript
- Stars
- 193
- Forks
- 114
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 7
Contributor guide
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 twilio/twilio-cli
-
status: work in progress
Difficulty 4/5 3-5 days Newbie friendliness 45/100
twilio/twilio-cli#712 · 1 comment ·
-
Stale
Difficulty 5/5 Over a week Newbie friendliness 35/100
twilio/twilio-cli#700 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
twilio/twilio-cli#691 · 6 comments ·
-
priority: low triage queue type: community enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
twilio/twilio-cli#498 · 2 comments ·
-
priority: low status: help wanted triage queue type: community enhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
twilio/twilio-cli#473 · 1 comment ·
All issues in twilio/twilio-cli
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 ·