Expand description
Twilly_cli is a CLI tool for interacting the Twilio API.
Coverage is partial yet offers a user-friendly way to interact with Twilio via the terminal. The CLI currently covers:
- Accounts
- Conversations
This crate has been developed alongside the twilly crate which backs
the functionality of the crate.
§Features
- Local profile memory to avoid repeatedly providing Twilio credentials.
- Intuitive account & conversation related controls.
- Additional helpers not found in the default Twilio CLI.
Structs§
Enums§
- Action
Choice - The possible actions a user may make.
- Filter
Choice - The options available to filter search results.
Traits§
- Inquire
Control - A wrapper around the Inquire crates various input controls. This is used to abstract the prompting and handling errors or cancellations.
Functions§
- get_
action_ choice_ from_ user - Gets the choice of an action from options provided as arguments.
BackandExitoptions will be presented also allowing the user to navigate backwards in a menu or exit. - get_
date_ from_ user - get_
filter_ choice_ from_ user - Gets the choice of a filter from options provided as an argument. An
Anyoption will be presented also suggesting that no specific filter is required. - prompt_
user - Prompts the user for some sort of input. Takes any function that
implements the
InquireControltrait and returns the output from the user. IfNoneis returned it is assumed the user un-forcefully cancelled the action, e.g. pressed ESC. - prompt_
user_ multi_ selection - prompt_
user_ selection - Prompts the user a selection from the provided options. Takes
any form of Inquires Select and returns the output
from the user. If
Noneis returned it is assumed the user un-forcefully cancelled the action, e.g. pressed ESC. - request_
credentials - Requests Twilio Account SID and auth token pair from the user and returns
it as a
TwilioConfigstruct.