Closed leggetter closed 8 years ago
Love it! Much better syntax.
I'd keep numbers:buy
though. We've taken the effort for most commands to accept singular and plural to help fight typos
I'd keep numbers:buy though.
Fixed in https://github.com/Nexmo/nexmo-cli/pull/89/commits/5d1de0a1bbcd01176ab95ded9ee9802273e5767b
This change makes it easier to buy a number quickly and also simplifies the underlying
numberBuy
code.Usage is now:
If number_pattern is a full number that number will be purchased.
If it’s not a full number and a
--country_id
option is set then a search is performed usingnumber_pattern
as the pattern.Or, just by the first number for a country:
numbers:buy
(plural) has been removed. It threw an exception anyway.