Git Product home page Git Product logo

aura.cli_kernel's Introduction

Aura.Cli_Kernel

This is a kernel for the Aura.Cli_Project package.

Foreword

Requirements

This kernel requires PHP 5.4 or later; we recommend using the latest available version of PHP as a matter of principle.

Unlike Aura library packages, this kernel package has userland dependencies, which themselves may have other dependencies:

Installation

This kernel is installable and autoloadable via Composer with the following require element in your composer.json file:

"require": {
    "aura/cli-kernel": "dev-develop-2"
}

Alternatively, download or clone this repository, then require or include its autoload.php file.

Tests

Scrutinizer Code Quality codecov Continuous Integration

To run the unit tests at the command line, issue composer install and then phpunit at the package root. This requires Composer to be available as composer, and PHPUnit to be available as phpunit.

PSR Compliance

This kernel attempts to comply with PSR-1, PSR-2, and PSR-4. If you notice compliance oversights, please send a patch via pull request.

Community

To ask questions, provide feedback, or otherwise communicate with the Aura community, please join our Google Group, follow @auraphp on Twitter, or chat with us on #auraphp on Freenode.

Services

This kernel defines the following service objects in the Container:

  • aura/cli-kernel:dispatcher: an instance of Aura\Dispatcher\Dispatcher
  • aura/cli-kernel:context: an instance of Aura\Cli\Context
  • aura/cli-kernel:stdio: an instance of Aura\Cli\Stdio
  • aura/cli-kernel:help_service: an instance of Aura\Cli_Kernel\HelpService

Note that service definitions set at the kernel level may be reset at the project level.

aura.cli_kernel's People

Contributors

cordoval avatar grummfy avatar harikt avatar kenjis avatar mattwellss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aura.cli_kernel's Issues

we could remove the Aura.Project_Kernel dependency

Aura.Cli_Kernel has a very weak and non-production dependency on Aura.Project_kernel

this can be easily removed because it is only used in Factory to create a container which imo is not really meriting a dependency. The reason why i think is good to remove the dependency is that it will give more clarity in ho Cli is very independent and decoupled on its own. I believe Aura has one of the best decoupled console cli packages and I think this can help a lot in the understanding of things. The factory is being used only in a functional test which imo can just be replaced with the logic of the method easily.

Help for Hello Command

Running

php cli/console.php help hello doesn't have any information .

As the help itself is a test command, may be the way the help for hello command will be like

php cli/console.php hello --help

Normally this is the way I expected a command to show. Not sure how this will become.

Make "profiler" available

Hi,
I think it could be helpful to have the possibilities to add a profiler in the CliKernel.

Example of usage:

  • getting the time to execute a command
  • getting the memory taken by a command
  • getting some other information

What do you think about this?

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.