2023-09-10 14:06:59 +02:00
# crunk-update
a CLI tool to post updates to crunk-scheduler.
## Designing CLI tools
2023-09-28 10:32:25 +02:00
* I actually never did this properly. currently reading [this guide ](https://clig.dev/ )
2023-10-08 12:33:14 +02:00
* [and this one ](https://betterprogramming.pub/building-cli-apps-in-rust-what-you-should-consider-99cdcc67710c )
2023-09-10 14:06:59 +02:00
## Make working software first
2023-11-05 22:05:09 +01:00
* `crunk-update --text "text"` should make a paragraph of `<p>text</p>` in [crunk-scheduler ](https://git.vvvvvvaria.org/crunk/crunk-scheduler )
* `crunk-update --file "test.md"` should post a markdown file to [crunk-scheduler ](https://git.vvvvvvaria.org/crunk/crunk-scheduler ) and have it converted to html
* this is now possible and working. up next we should make some CLI flags such as --help (done through using clap)
2023-09-10 14:06:59 +02:00
2023-09-28 10:32:25 +02:00
## Learning Rust.
* [clap is a Command Line Argument Parser for Rust ](https://docs.rs/clap/latest/clap/ )
* [reqwest is a convenient, higher-level HTTP Client ](https://docs.rs/reqwest/latest/reqwest/ )
2023-10-18 15:29:03 +02:00
* [Tokio is an asynchronous runtime for the Rust programming language. ](https://tokio.rs/ )
2023-09-10 14:06:59 +02:00
## Readme driven development
2023-11-05 22:05:09 +01:00
* have crunk-scheduler do all the conversion to html in rss. ✅
2023-09-10 14:06:59 +02:00
* make this as simple as possible
2023-11-05 22:05:09 +01:00
- post a simple text ✅
- post markdown ✅
2023-10-18 15:29:03 +02:00
- post media files (jpeg, mp3, mp4 etc)
2023-09-23 15:26:01 +02:00
* be able to set a time when something is scheduled.
2023-11-05 22:05:09 +01:00
* and look up how to schedule a post
* have the url in a config file
* have the api-key in a config file (yes, everyone loves tokens, but this project is small)