Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to send emails without attachment without entering interactive mode #93

Closed
stefanjudis opened this issue Aug 5, 2019 · 5 comments
Labels
difficulty: medium fix is medium in difficulty status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap

Comments

@stefanjudis
Copy link

stefanjudis commented Aug 5, 2019

It's not possible to send emails without attachment without entering interactive mode

When scripting email operations I'd like to send emails. The command

twilio email:send --from=no-reply@... --to=stefanjudis@... --subject="test" --text="test"

doesn't terminate but rather asks interactively if I want to send an attachment, too.

Steps to Reproduce

  1. Run the described command 👆 and try to send an email without entering the interactive question.

Any other information you want to share that is relevant to the issue being reported. Especially, why do you consider this to be a bug? What do you expect to happen instead?

This behavior prevents me from automating email operations (there are ways around that but yeah...). As an email attachment is optional I didn't expect this question with from, to and text defined. :)

Thanks a bunch for looking into this. 😊

Technical details:

  • twilio-cli Version: 1.4.0
  • Node.js Version: 12.4.0
@childish-sambino
Copy link
Contributor

Not clear on what's the proper flow. Perhaps only prompt for an attachment if the --text flag was not provided? As in, why should we prompt for an attachment if you already provided body text as part of the command.

@stefanjudis
Copy link
Author

stefanjudis commented Aug 7, 2019

I'm not 100% sure about that either and I haven't checked the overall concepts across the CLI but i was expecting --attachment to be optional. After i figured out that it isn't I was looking for a --no-attachment flag (which feels a little odd though).

Overall, I feel like that there should be a way to disable interactive mode for all the commands.

@childish-sambino
Copy link
Contributor

Makes sense. Do you have any examples of other CLIs which do something similar?

@stefanjudis
Copy link
Author

stefanjudis commented Aug 7, 2019

Unfortunately, not really, but I remember that I used --interactive flags in the past. A little bit of googling brought up Azure's concept and that topic. :)

@childish-sambino childish-sambino added difficulty: medium fix is medium in difficulty status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap labels Sep 19, 2019
@thinkingserious
Copy link
Contributor

Since there has been no activity on this issue since March 1, 2020, we are closing this issue. Please feel free to reopen or create a new issue if you still require assistance. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: medium fix is medium in difficulty status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap
Projects
None yet
Development

No branches or pull requests

3 participants