https://github.com/farghul/platypus
Check for WordPress plugin updates directly from the server.
https://github.com/farghul/platypus
go wordpress
Last synced: about 2 months ago
JSON representation
Check for WordPress plugin updates directly from the server.
- Host: GitHub
- URL: https://github.com/farghul/platypus
- Owner: farghul
- License: unlicense
- Created: 2024-07-03T17:06:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-11T20:28:08.000Z (over 1 year ago)
- Last Synced: 2025-02-11T21:28:36.749Z (over 1 year ago)
- Topics: go, wordpress
- Language: Go
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Platypus
Platypus is a WordPress plugin update search tool. It runs the standard `wp plugin list --update=available` command as well as some custom searches to grab those hard to find plugin updates.

``` zsh
Below is the current list of plugins requiring updates for test.blog.ca
wpackagist-plugin/gutenberg:22.9.0
wpackagist-plugin/tablepress:3.3
wpackagist-plugin/visualizer:4.0.1
wpackagist-plugin/woosidebars:1.4.6
wpackagist-theme/twentytwentyfive:1.4
```
## 📚 Prerequisite
The [Go Programming Language](https://go.dev "Build simple, secure, scalable systems with Go") installed to enable building executables from source code.
Creation of a `test.json` file with the following values as per your environment:
``` json
{
"address": "WordPress base url (no leading protocol)",
"install": "Path on the server to the WordPress install",
"recipient": "Email recipient(s) address(es)",
"sender": "Address of Email sender ",
"server": "Name of WordPress hosting server",
"user": "User authorized to run the program"
}
```
## 🚧 Build
Before building the application, change the value of the `meta` and `temp` constants to reflect your environment:
``` go
meta string = "/data/automation/jsons/"
temp string = "/data/automation/temp/"
```
Then, from the root folder containing `main.go`, use the command that matches your environment:
### Windows & Mac:
``` zsh
go build -o [name] .
```
### Linux:
``` zsh
GOOS=linux GOARCH=amd64 go build -o [name] .
```
## 🏃 Run
``` zsh
./platypus -r
```
## 🎏 Available Flags
| Command | Action |
|:----------------------|:----------------------------|
| `-h, --help` | Help information |
| `-r, --run` | Run program |
| `-v, --version` | Display program version |
## 🎫 License
Code is distributed under [The Unlicense](https://github.com/farghul/platypus/blob/main/LICENSE.md "Unlicense Yourself, Set Your Code Free") and is part of the Public Domain.