| Crates.io | pst |
| lib.rs | pst |
| version | 0.2.0 |
| created_at | 2024-03-31 00:00:54.068514+00 |
| updated_at | 2024-04-05 20:17:58.997362+00 |
| description | A tool to publish posts to Micro.blog |
| homepage | https://github.com/chrishannah/pst |
| repository | https://github.com/chrishannah/pst |
| max_upload_size | |
| id | 1191365 |
| size | 39,425 |
A simple command-line tool to publish short posts to Micro.blog.
This is partially a personal project to learn Rust, but also to build something that I will use myself. If other people find it useful in any capacity, then that is a bonus.
Using pst is pretty simple.
The command is pst, you then need to say if it's a draft or not, by using
draft or post, and then you write your micro post.
So to write a draft post, you would do something like this:
pst draft "Hello, world. This is a draft post"
Or to publish it directly:
pst post "only losers draft posts"
Keep in mind, that if you use anything other than draft or post, it will
default to a draft post.
pst is configured using a rather simple json file, stored in your home
directory, under .config/pst/config.json. It only needs to contain your
Micro.blog app token in the following format:
{
"token": "micro.blog token"
}