First draft of zora-post.

This commit is contained in:
Lyle Mantooth 2022-11-13 23:53:27 -05:00
parent b45c423439
commit 4c3690e529
Signed by: IslandUsurper
GPG key ID: 6DB52EAE123A5789

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.
}