diff options
| author | Franck Cuny <franck@fcuny.net> | 2022-11-19 18:48:12 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2022-11-19 19:01:01 -0800 |
| commit | d78070d130c32227a2788591d3efd321da702658 (patch) | |
| tree | 55e34a15a8ff3b53714c55974bd738e48a5bbcb9 /Cargo.toml | |
| parent | meta: ignore artifact created by `nix build` (diff) | |
| download | sendsms-d78070d130c32227a2788591d3efd321da702658.tar.gz | |
feat: a CLI to send sms via twilio's API
I want to get an SMS when some of my machines are rebooted. This tool
let me do just that. The CLI takes as argument the path to a
configuration file that contains credentials to the API. It also has a
number of sub commands, and each sub command is associated with a
specific action.
For each action, a section in the configuration file is expected. The
two actions currently supported are:
- `reboot`
- `hello`
`hello` is a simple one used for testing, it sends "hello world".
`reboot` is used to create a message that contains the host's name and
the IP address of the network interface specified in the configuration
file.
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -5,4 +5,15 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[dev-dependencies] +httpmock = "0.6" + [dependencies] +clap = {version = "3.2.17", features = ["derive", "cargo"]} +gethostname = "0.2.3" +http = "0.2.8" +if-addrs = "0.7.0" +reqwest = {version = "0.11.11", features = ["blocking", "json"] } +serde = { version = "1.0.144", features = ["derive"] } +serde_json = "1.0.85" +toml = "0.5.9" |
