Nexmo / nexmo-cli

Nexmo CLI (Command Line Interface)
https://nexmo.com
MIT License
78 stars 52 forks source link

When using --confirm with `number:buy` (or anytime, really) the confirmation should show the number that was purchased #62

Closed leggetter closed 8 years ago

leggetter commented 8 years ago

It's specifically a problem if you do something like the following which purchases the first number returned from a search:

nexmo number:search GB | sed -n 1p | xargs -I{} nexmo number:buy {} --confirm

Because the output of the first command isn't show and is instead piped to sed and then accessed via xargs.

Result:

› nexmo number:search GB | sed -n 1p | xargs -I{} nexmo number:buy {} --confirm
Number purchased

What number did I purchase?

There may be a way to also output the number via the above command. But this request seems reasonable none the less.