Categorygithub.com/farghul/platypus
repositorypackage
0.0.0-20250211202800-b5934b10ce1c
Repository: https://github.com/farghul/platypus.git
Documentation: pkg.go.dev

# 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.

Platypus

Below is the current list of plugins requiring updates for test.blog.ca

wpackagist-plugin/gutenberg:14.8.2
wpackagist-plugin/stackable-ultimate-gutenberg-blocks:3.6.3
wpackagist-plugin/styles-and-layouts-for-gravity-forms:4.3.10
wpackagist-plugin/tablepress:2.0.1

Prerequisite

Googles' Go language installed to enable building executables from source code.

Creation of a vars.go file with the following values as per your environment:

// WordPress installation specific values 
const (
	server    string = /* [Server hosting WordPress] */
	blog      string = /* [Path on the server to the WordPress install] */
	site      string = /* [WordPress base url (no leading protocol)] */
	sender    string = /* [email sender address] */
	recipient string = /* [email recipient(s) address(es)] */
	user      string = /* [user authorized to run the program] */
)

// Predefined list of servers
var (
	servers = []string{/* list of servers to test against */}
)

Build

Before building the application, change the value of the assets constant to reflect your environment:

assets string = "/data/scripts/automation/assets/"

Then, from the root folder containing main.go, use the command that matches your environment:

Windows & Mac:

go build -o [name] .

Linux:

GOOS=linux GOARCH=amd64 go build -o [name] .

Options

-h, --help       Help Information
-r, --run        Run Program
-v, --version    Display App Version

Run

./[program] [flag]

Example:

./platypus -r

License

Code is distributed under The Unlicense and is part of the Public Domain.