Compare commits

...

2 commits

Author SHA1 Message Date
Lyle Mantooth 4c3690e529
First draft of zora-post. 2022-11-13 23:55:54 -05:00
Lyle Mantooth b45c423439
Add deps for zora-post. 2022-11-13 23:55:54 -05:00
2 changed files with 20 additions and 1 deletions

View file

@ -3,6 +3,11 @@ name = "zora"
version = "0.1.0"
edition = "2021"
[dependencies]
pico-args = "0.5.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
[dependencies.ureq]
version = "2.5.0"
features = ["cookies", "encoding_rs", "json", "serde_json"]

14
src/bin/zora-post/main.rs Normal file
View file

@ -0,0 +1,14 @@
use pico_args::Arguments;
fn main() {
let args = Arguments::from_env();
// Get path to file to post from args.
// Read title from file's metadata.
// Read Zola config.toml.
// Determine URL to selected file using config data and file path (strip off `content/`, change .md to .html)
// Read cached Mastodon app data.
// If none, register on theres.life.
// Login as IslandUsurper.
// Post new status with title and URL, with #Bible #journal hashtags.
}