Categories


Archives


Recent Posts


Categories


Pestle Now has a selfupdate Command

astorm

Frustrated by Magento? Then you’ll love Commerce Bug, the must have debugging extension for anyone using Magento. Whether you’re just starting out or you’re a seasoned pro, Commerce Bug will save you and your team hours everyday. Grab a copy and start working with Magento instead of against it.

Updated for Magento 2! No Frills Magento Layout is the only Magento front end book you'll ever need. Get your copy today!

For folks using pestle, my PHP command line frameworking + Magento code generation tool, I’ve just added a selfupdate command. This will make a backup of your current version, grab the latest version, and update your local copy (permissions allowing, of course)

$ pestle.phar selfupdate
Downloaded to /private/tmp/pestle_DZOXou
Backing up /Users/alanstorm/Documents/github_private/GeneralCode/bin/pestle.phar to /Users/alanstorm/Documents/github_private/GeneralCode/bin/pestle.phar.1472763047
Backed up current pestle to /Users/alanstorm/Documents/github_private/GeneralCode/bin/pestle.phar.1472763047
Reaplced /Users/alanstorm/Documents/github_private/GeneralCode/bin/pestle.phar

Next up along these lines is formalizing the concept of pestle versions and adding some sort of “you haven’t updated in 30 days and there’s a new version” feature.

I don’t have any regrets about setting out to create my own CLI framework, but it really makes me appreciate everything you get “for free” from somethings like Symfony console.

Copyright © Alana Storm 1975 – 2023 All Rights Reserved

Originally Posted: 1st September 2016

email hidden; JavaScript is required