aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-11-19feat: a CLI to send sms via twilio's APIFranck Cuny1-1/+50
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.