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.
- Host: GitHub
- URL: https://github.com/technopagan/rust-wp-cli-poster
- Owner: technopagan
- License: unlicense
- Created: 2025-03-08T08:56:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-09T13:49:08.000Z (over 1 year ago)
- Last Synced: 2025-06-27T06:48:07.311Z (about 1 year ago)
- Topics: cli, rust, wordpress
- Language: Rust
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```