This CLI app sends pre-canned messages to Telegram.
I wanted to learn Rust. And I wanted to know when long-running downloads started and finished.
- Sign the app for macOS.
- Add build for Windows.
- Remove the prints from
init_check()when things are fine. - End-to-end tests of the CLI commands.
- Started some testing...
- Feels like too much
.unwrap()usage.- Made it more modular and let caller handle errors.
- Download and unzip the binary for your system. Since Rust is awesome, feel free to just
cargo build. - The binary should be in
~/bin/because this is where the CLI app's config and logs will go. - Add this location to your PATH e.g.
export PATH="$HOME/bin:$PATH". - First run will panic but create the config file in
~/bin/sh-to-telegram.toml.- If you're on macOS you need to go to settings and allow this app to run. I need to sign it.
- Put your Telegram details in there. This app uses Telegram's Bot API
- use the
--helpflag to see further instructions.
- Update
./CHANGELOG.mdwith new version. - Tag the commit in the format like
v0.3.1. - GitHub actions will run and create all binaries and a GitHub Release. See
./.github/workflows/release.yml