% cat /bin/blg
#!/bin/rc
echo -n 'Title: '
title = `{read}
echo -n 'Tags: '
tags = `{read}
echo -n 'Draft: '
draft = `{read}
if(~ $draft Yes) draft = 'Draft: yes
'
{
echo 'Title: ' $"title
echo 'Tags: ' $"tags
echo -n $draft
cat
} > /n/blogger/new
The slight use advantage of the FS for this is that you can export it once you have authenticated and hand it to a service.
Off the top of my head you could run fossil/last and save it as a draft post on blogger.
It also means you can use blogger as a storage system for your CP
No comments:
Post a Comment