astorm / pestle Goto Github PK
View Code? Open in Web Editor NEWA collection of command line scripts for Magento 2 code generation, and a PHP module system for organizing command line scripts.
License: MIT License
A collection of command line scripts for Magento 2 code generation, and a PHP module system for organizing command line scripts.
License: MIT License
Should phar prepackage all commands? Or should it be a generic runner you can point to a library?
Parser code to extract all functions from a file.
The main idea behind this one is to allow a user to download the phar, create their own modules
folder, and have pestle treat it as a module source.
Discovered this with the token functions. Because the importer works by exporting a function to the global namespaces, any function with a PHP name will bork things.
Possible fix -- throw a warning when this is encountered and import as a pestle_
prefixed function.
Implementing as
is another possible fix.
This was an experiment gone wrong. Modules should be name based on their namespace only. We'll need to identify every file using module.php and make sure its not anymore.
mage2 hello_argument Hello World --explain
Right now we're accepting arguments as passed to PHP. We should have proper -
and --
option parsing. Initial thoughts are to have the options passed in to pestle_main
as a second array. The $argv
should be kept for that inputOrIndex
still works as expected.
The following
pestle_import('Pulsestorm\Pestle\Importer\getCacheDir');
pestle_import('pulsestorm\pestle\importer\getCacheDir');
should "work" i.e. even though someone is trying to include something twice, the second should be silently ignored. Right now the system barfs on this, which creates problems if two modules are loaded, and each one uses a different format.
Need to dice if we're going to force a naming/case convention, be case sensitive, or normalize case.
Right now, now, functions are only way in/out.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.