Giter Site home page Giter Site logo

Comments (3)

mvriel avatar mvriel commented on July 19, 2024

This could be tough to implement because each command needs to have a fair bit of definition; I'll see if I can prototype something like this because I do like the simplicity.

from cilex.

mvriel avatar mvriel commented on July 19, 2024

This appears to be not as tough as predicted; I have a prototype but need to finish it and do some testing

from cilex.

henrikbjorn avatar henrikbjorn commented on July 19, 2024

There is two possibilityies.

  1. We allow two parameters to command and interpolate on the number of arguments. Downside is the code could be quite messy.
  2. We rename the command method into something else like add and use command($name, $callable) instead. The downside is that we break everything. The positive is it names more sense to do $app->command('something', function () {}) instead of $app->simple($name, function () {}).

from cilex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.