Giter Club home page Giter Club logo

cli's People

Contributors

grummfy avatar hywan avatar jubianchi avatar vonglasow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cli's Issues

Support \U, \u, \L, \l, \E and \e in the zFormat

From @Hywan on November 10, 2014 11:9

Please, see point 5 of http://php.net/reference.pcre.pattern.differences. Consequently, we are not able to write something like: s/-(.)/\u\1/ to transform foo-bar into fooBar. We have to implement it by ourselves.

  • \U,
  • \u,
  • \L,
  • \l,
  • \E,
  • \e.

Two locations: either in the zFormat or in Hoa\Regex (we would create a new “preg_replace”-like implementation). I would go for Hoa\Regex but it will create a dependency between Hoa\Core and Hoa\Regex which must not happen (in this way). However, supporting it in all regular expressions used in Hoa would be great… So I propose to (1) implement it in the zFormat, and then (2) in Hoa\Regex.

Thoughts?

Needed to continue hoaproject/Core#56 (comment).

Copied from original issue: hoaproject/Core#57

Change "\n" to PHP_EOL for Windows users

I noticed Cli/Bin/Welcome.php use \n char for printing new line in the Console.
The Best Practice is PHP_EOL, as DIRECTORY_SEPARATOR for /.
It causes some unexpected issues while we share our code to Windows users ;)

Allow dash in command name

From @Hywan on November 9, 2014 14:25

We just remove dashes in command name. For example, for the Hoa\Devtools\Bin\Requiresnapshot command, we can write:

$ hoa devtools:require-snapshot

instead of

$ hoa devtools:requiresnapshot

The first one is far more readable.

Of course, we can also write:

$ hoa devtools:r-e-q-u-i-r-e-s-n-a-p-s-h-o-t--------

and it will work.

Pro: help to read long commands.
Con: several “names” for the same command, which is not… good :-/.

Thoughts?

/cc @hoaproject/hoackers

Copied from original issue: hoaproject/Core/pull/56

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.