Adds wp update command for handling wordpress and composer dependencies
PR Summary
Addition of WordPress and Composer Update Functionality
A new file has been introduced called commands/wordpressComposerUpdate.js. It houses a function wpUpdate(), which enables updating WordPress and Composer dependencies. The process is streamlined and efficient, as it manages package validation, updates, and communicator success/error messages.
Refactor of Package Version Checking
The commands/status.js file now simplifies the process of checking various package versions. Individual code blocks for each separate package version check have been replaced by a loop system. This system conveniently executes version commands, compares results with minimum requirements, and provides summaries for each package.
Inclusion of the 'wp update' Command in the Application
The main application, via the index.js file, now includes a 'wp update' command. This can directly call our new wpUpdate() function, enhancing the functionality and efficient use of the program.
Checking for Dependencies During WordPress Commands
A change in lib/dependencies.js allows the program to check if composer and php commands are present during a WordPress command ('wp'). These dependencies are essential in the functionality of updating WordPress and Composer dependencies.
Updating of Dependency Versions
In lib/versions.js, versions for wpCli, composer, and php have been updated, ensuring that the program relies on the latest and more efficient versions of these dependencies.
Adds
wp update
command for handling wordpress and composer dependenciesPR Summary
Addition of WordPress and Composer Update Functionality A new file has been introduced called
commands/wordpressComposerUpdate.js
. It houses a functionwpUpdate()
, which enables updating WordPress and Composer dependencies. The process is streamlined and efficient, as it manages package validation, updates, and communicator success/error messages.Refactor of Package Version Checking The
commands/status.js
file now simplifies the process of checking various package versions. Individual code blocks for each separate package version check have been replaced by a loop system. This system conveniently executes version commands, compares results with minimum requirements, and provides summaries for each package.Inclusion of the 'wp update' Command in the Application The main application, via the
index.js
file, now includes a 'wp update' command. This can directly call our newwpUpdate()
function, enhancing the functionality and efficient use of the program.Checking for Dependencies During WordPress Commands A change in
lib/dependencies.js
allows the program to check ifcomposer
andphp
commands are present during a WordPress command ('wp'). These dependencies are essential in the functionality of updating WordPress and Composer dependencies.Updating of Dependency Versions In
lib/versions.js
, versions forwpCli
,composer
, andphp
have been updated, ensuring that the program relies on the latest and more efficient versions of these dependencies.https://iodigitalcom.slack.com/docs/T034ZQLT0/F05P49CU8BC