From 92629dde4737c5c75631ca9a1316bb82648b7361 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 8 Dec 2021 18:30:38 +0100 Subject: [PATCH] Import 2.5.0 --- .gitattributes | 1 + .tito/releasers.conf | 1 + .tito/tito.props | 4 +- LICENSE | 21 +++++++++ wp-cli-2.5.0.phar | 3 ++ wp-cli.spec | 69 ++++++++++++++++++++++++++++ wp.1 | 107 +++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 204 insertions(+), 2 deletions(-) create mode 100644 .gitattributes create mode 120000 .tito/releasers.conf create mode 100644 LICENSE create mode 100644 wp-cli-2.5.0.phar create mode 100755 wp-cli.spec create mode 100644 wp.1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..e362ad1 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.phar filter=lfs diff=lfs merge=lfs -text diff --git a/.tito/releasers.conf b/.tito/releasers.conf new file mode 120000 index 0000000..867c32f --- /dev/null +++ b/.tito/releasers.conf @@ -0,0 +1 @@ +../../tito_libs/releasers.conf \ No newline at end of file diff --git a/.tito/tito.props b/.tito/tito.props index eab3f19..5c9c572 100644 --- a/.tito/tito.props +++ b/.tito/tito.props @@ -1,5 +1,5 @@ [buildconfig] -builder = tito.builder.Builder -tagger = tito.tagger.VersionTagger +builder = dbd.builder.GitLfsBuilder +tagger = tito.tagger.ReleaseTagger changelog_do_not_remove_cherrypick = 0 changelog_format = %s (%ae) diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..91eaef1 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (C) 2011-2018 WP-CLI Development Group (https://github.com/wp-cli/wp-cli/contributors) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/wp-cli-2.5.0.phar b/wp-cli-2.5.0.phar new file mode 100644 index 0000000..1503b06 --- /dev/null +++ b/wp-cli-2.5.0.phar @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be0853e9f443f3848566070871d344e8ad81eb1e15d15dcf9324b4a75e272789 +size 6094557 diff --git a/wp-cli.spec b/wp-cli.spec new file mode 100755 index 0000000..59a9dd7 --- /dev/null +++ b/wp-cli.spec @@ -0,0 +1,69 @@ +%define name2 wp + +Name: wp-cli +Version: 2.5.0 +Release: 0%{?dist} +Summary: The command line interface for WordPress +License: MIT +URL: http://%{name}.org/ +Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.phar +Source1: LICENSE +Source2: wp.1 +BuildArch: noarch + +%description +WP-CLI is the command-line interface for WordPress. +You can update plugins, configure multisite installations +and much more, without using a web browser. + +%prep +chmod +x %{SOURCE0} +{ + echo '.TH "WP" "1"' + php %{SOURCE0} --help +} \ + | sed -e 's/^\([A-Z ]\+\)$/.SH "\1"/' \ + | sed -e 's/^ wp$/wp \\- The command line interface for WordPress/' \ +> %{SOURCE2} + +%build + +%install +mkdir -p %{buildroot}%{_bindir} +install -p -m 0755 %{SOURCE0} %{buildroot}%{_bindir}/%{name2} +cp -f %SOURCE1 LICENSE +mkdir -p %{buildroot}%{_mandir}/man1 +install -p -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/ + + +%files +%license LICENSE +%{_bindir}/%{name2} +%{_mandir}/man1/wp.1* + +%changelog +* Wed Dec 8 2021 Daniel Berteaud - 2.5.0-1 +- update to 2.5.0 + +* Fri Nov 22 2019 Luis M. Segundo - 2.4.0-2 +- update release. + +* Fri Nov 22 2019 Luis M. Segundo - 2.4.0-1 +- update to 2.4.0. + +* Tue Aug 20 2019 Luis M. Segundo - 2.3.0-1 +- update to 2.3.0. + +* Sat Jul 27 2019 Fedora Release Engineering - 2.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Jun 23 2019 Luis M. Segundo - 2.2.0-2 +- include man +- change bindir wp-cli to wp + +* Sat Jun 8 2019 Luis M. Segundo - 2.2.0-1 +- update to 2.2.0. + +* Sun Feb 24 2019 Luis M. Segundo - 2.1.0-1 +- Initial package for Fedora, based on upstream SPEC file (dated Dec 2017). + diff --git a/wp.1 b/wp.1 new file mode 100644 index 0000000..38a523d --- /dev/null +++ b/wp.1 @@ -0,0 +1,107 @@ +.TH "WP" "1" +NAME + +wp \- The command line interface for WordPress + +DESCRIPTION + + Manage WordPress through the command-line. + +SYNOPSIS + + wp + +SUBCOMMANDS + + cache Adds, removes, fetches, and flushes the WP Object Cache object. + cap Adds, removes, and lists capabilities of a user role. + cli Review current WP-CLI info, check for updates, or see defined aliases. + comment Creates, updates, deletes, and moderates comments. + config Generates and reads the wp-config.php file. + core Downloads, installs, updates, and manages a WordPress installation. + cron Tests, runs, and deletes WP-Cron events; manages WP-Cron schedules. + db Performs basic database operations using credentials stored in wp-config.php. + embed Inspects oEmbed providers, clears embed cache, and more. + eval Executes arbitrary PHP code. + eval-file Loads and executes a PHP file. + export Exports WordPress content to a WXR file. + help Get help on WP-CLI, or on a specific command. + i18n Provides internationalization tools for WordPress projects. + import Imports content from a given WXR file. + language Installs, activates, and manages language packs. + maintenance-mode Activates, deactivates or checks the status of the maintenance mode of a site. + media Imports files as attachments, regenerates thumbnails, or lists registered image + sizes. + menu Lists, creates, assigns, and deletes the active theme's navigation menus. + network Perform network-wide operations. + option Retrieves and sets site options, including plugin and WordPress settings. + package Lists, installs, and removes WP-CLI packages. + plugin Manages plugins, including installs, activations, and updates. + post Manages posts, content, and meta. + post-type Retrieves details on the site's registered post types. + rewrite Lists or flushes the site's rewrite rules, updates the permalink structure. + role Manages user roles, including creating new roles and resetting to defaults. + scaffold Generates code for post types, taxonomies, plugins, child themes, etc. + search-replace Searches/replaces strings in the database. + server Launches PHP's built-in web server for a specific WordPress installation. + shell Opens an interactive PHP console for running and testing PHP code. + sidebar Lists registered sidebars. + site Creates, deletes, empties, moderates, and lists one or more sites on a multisite + installation. + super-admin Lists, adds, or removes super admin users on a multisite installation. + taxonomy Retrieves information about registered taxonomies. + term Manages taxonomy terms and term meta, with create, delete, and list commands. + theme Manages themes, including installs, activations, and updates. + transient Adds, gets, and deletes entries in the WordPress Transient Cache. + user Manages users, along with their roles, capabilities, and meta. + widget Manages widgets, including adding and moving them within sidebars. + + + +GLOBAL PARAMETERS + + --path= + Path to the WordPress files. + + --url= + Pretend request came from given URL. In multisite, this argument is how the target site is + specified. + + --ssh=[:][@][:][] + Perform operation against a remote server over SSH (or a container using scheme of "docker", + "docker-compose", "vagrant"). + + --http= + Perform operation against a remote WordPress installation over HTTP. + + --user= + Set the WordPress user. + + --skip-plugins[=] + Skip loading all plugins, or a comma-separated list of plugins. Note: mu-plugins are still loaded. + + --skip-themes[=] + Skip loading all themes, or a comma-separated list of themes. + + --skip-packages + Skip loading all installed packages. + + --require= + Load PHP file before running the command (may be used more than once). + + --[no-]color + Whether to colorize the output. + + --debug[=] + Show all PHP errors and add verbosity to WP-CLI output. Built-in groups include: bootstrap, + commandfactory, and help. + + --prompt[=] + Prompt the user to enter values for all command arguments, or a subset specified as comma-separated + values. + + --quiet + Suppress informational messages. + + Run 'wp help ' to get more information on a specific command. +