From c853a5078b0a8dee22bb69b971b8315f66033f49 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 5 Sep 2022 16:59:20 -0700 Subject: feat(tool/sendsms): a CLI to send SMS This is a new tool to send SMS via Twilio's API. For now it supports a single subcommand: reboot. Using that subcommand, a SMS will be send with the name of the host and the IP address for the defined network interface. This is useful to be notified when one of my machine reboot, and what's the IP for the main interface (this is useful since my ISP does not provide a static IP). Change-Id: I5886a2c77ebd344ab3befa51a6bdd3d65bcc85d4 --- tools/sendsms/Cargo.toml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tools/sendsms/Cargo.toml (limited to 'tools/sendsms/Cargo.toml') diff --git a/tools/sendsms/Cargo.toml b/tools/sendsms/Cargo.toml new file mode 100644 index 0000000..c416d2a --- /dev/null +++ b/tools/sendsms/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "sendsms" +version = "0.1.0" +edition = "2021" + +[dependencies] +base64 = "0.13.0" +clap = {version = "3.2.17", features = ["derive", "cargo"]} +env_logger = "0.8.4" +gethostname = "0.2.3" +http = "0.2.8" +if-addrs = "0.7.0" +log = "0.4.17" +reqwest = {version = "0.11.11", features = ["blocking", "json"] } +serde = { version = "1.0.144", features = ["derive"] } +serde_json = "1.0.85" +toml = "0.5.9" -- cgit 1.4.1