An open API service indexing awesome lists of open source software.

https://github.com/technopagan/rust-wp-cli-poster

Finger practice: make a Rust CLI tool in an afternoon that can post short status messages to my WordPress.
https://github.com/technopagan/rust-wp-cli-poster

cli rust wordpress

Last synced: 2 months ago
JSON representation

Finger practice: make a Rust CLI tool in an afternoon that can post short status messages to my WordPress.

Awesome Lists containing this project

README

          

# rust-wp-cli-poster

Finger practice: make a Rust CLI tool in an afternoon that can post short status messages to my WordPress.

## Set it up

``` shell
cp config_example.toml config.toml
# then set the values inside config.toml accordingly
```

## Test it in-flight

``` shell
cargo update && cargo run 'the post message'
```

## Build it properly

``` shell
cargo build --release
strip target/release/blog
```

## Make it accessible for use

``` shell
ln -s /path/to/rust-wp-cli-poster/target/release/blog /somewhere/in_your_path/blog
chmod +x /somewhere/in_your_path/blog
```

## Use it

``` shell
blog 'Your glorious microblogging message'

```

## Run it like a Pro

``` shell
blog --help
CLI tool to send a new post to a WordPress instance

Usage: blog [OPTIONS] [CONTENT]...

Arguments:
[CONTENT]... The post content split into words (will be joined into one message)

Options:
-t, --title The post title
-d, --draft Draft mode - don't publish immediately
-h, --help Print help
-V, --version Print version
```