You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
crunk
8c444e57f2
|
1 year ago | |
---|---|---|
src | 1 year ago | |
.gitignore | 1 year ago | |
Cargo.toml | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago |
README.md
crunk-update
a CLI tool to post updates to crunk-scheduler.
Designing CLI tools
- I actually never did this properly. currently reading this guide
- and this one
Make working software first
crunk-update --text "text"
should make a paragraph of<p>text</p>
in crunk-schedulercrunk-update --file "test.md"
should post a markdown file to 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)
Learning Rust.
- clap is a Command Line Argument Parser for Rust
- reqwest is a convenient, higher-level HTTP Client
- Tokio is an asynchronous runtime for the Rust programming language.
Readme driven development
- have crunk-scheduler do all the conversion to html in rss. ✅
- make this as simple as possible
- post a simple text ✅
- post markdown ✅
- post media files (jpeg, mp3, mp4 etc)
- be able to set a time when something is scheduled.
- 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)