Coder Social home page Coder Social logo

l4shell's People

Stargazers

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

Watchers

 avatar  avatar

l4shell's Issues

command not found

Hello,

Just had a go at using this but when I do the the following:
$command = L4shell::get(); $command->setCommand('git pull')->execute();

It errors out saying it can't find the command. My storage logs say:

[2013-08-16 12:53:50] log.INFO: Command set to: git pull {"context":"l4shell"} [] [2013-08-16 12:53:50] log.INFO: Executing command: git pull {"context":"l4shell"} [] [2013-08-16 12:53:50] log.ERROR: The given command could not be found (exit status 127) - [git pull] ["l4shell"] [] [2013-08-16 12:53:50] log.ERROR: exception 'Netson\L4shell\CommandNotFoundException' with message 'The given command could not be found (exit status 127) - [git pull]' in /{path_to_project}/vendor/netson/l4shell/src/Netson/L4shell/Command.php:189 Stack trace: #0 /{path_to_project}/app/routes.php(22): Netson\L4shell\Command->execute() #1 [internal function]: {closure}() #2 /{path_to_project}/bootstrap/compiled.php(7926): call_user_func_array(Object(Closure), Array) #3 /{path_to_project}/bootstrap/compiled.php(7913): Illuminate\Routing\Route->callCallable() #4 /{path_to_project}/bootstrap/compiled.php(4829): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request)) #5 /{path_to_project}/bootstrap/compiled.php(497): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request)) #6 /{path_to_project}/bootstrap/compiled.php(484): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request)) #7 /{path_to_project}/public/index.php(49): Illuminate\Foundation\Application->run() #8 {main} [] []

I can run those commands from the terminal just fine without errors. using a linux VPS.

thanks a lot

Return a commands output

Is it possible to return the output for the commands that are run.

I tried the following. The command runs fine and works well but whenever I dump $status it is always 0 (even when it runs successfully).

$command = L4shell::get();
$command->setExecutionPath(base_path() . '/');
$command->setExecutablePath('/usr/local/bin/');

$status[]=$command->setCommand('git pull')->execute();

For example when I run the git pull it would be handy to know the output.

Also do you think the above is the right way to do this. The reason I use a $status array is so that I can store the output for each command that is executed as a new item.

Or maybe what would be better is a command like $command->output that spits out an array containing the output of each command that was executed?

Thanks for the great package.

Can't install on Laravel 4.1.*

This package couldn't be installed on my Laravel 4.1.* app. My composer.json:

    ...
    "require": {
        "laravel/framework": "4.1.*",
        "way/generators": "dev-master",
        "netson/l4shell": "1.2.x"
    },
    ...

A composer update yields this error:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: remove laravel/framework v4.1.12
    - Conclusion: don't install laravel/framework v4.1.12
    - Conclusion: don't install laravel/framework v4.1.11
    - Conclusion: don't install laravel/framework v4.1.10
    - Conclusion: don't install laravel/framework v4.1.9
    - Conclusion: don't install laravel/framework v4.1.8
    - Conclusion: don't install laravel/framework v4.1.7
    - Conclusion: don't install laravel/framework v4.1.6
    - Conclusion: don't install laravel/framework v4.1.5
    - Conclusion: don't install laravel/framework v4.1.4
    - Conclusion: don't install laravel/framework v4.1.3
    - Installation request for netson/l4shell 1.2.x -> satisfiable by netson/l4shell[1.2.0].
    - Conclusion: don't install laravel/framework v4.1.2
    - Conclusion: don't install laravel/framework v4.1.1
    - netson/l4shell 1.2.0 requires illuminate/support 4.0.x -> satisfiable by laravel/framework[v4.0.0, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9], illuminate/support[v4.0.0, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9].
    - don't install illuminate/support v4.0.0|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.1|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.10|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.2|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.3|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.4|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.5|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.6|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.7|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.8|don't install laravel/framework v4.1.0
    - don't install illuminate/support v4.0.9|don't install laravel/framework v4.1.0
    - Can only install one of: laravel/framework[v4.1.0, v4.0.0].
    - Can only install one of: laravel/framework[v4.1.0, v4.0.1].
    - Can only install one of: laravel/framework[v4.1.0, v4.0.10].
    - Can only install one of: laravel/framework[v4.1.0, v4.0.2].
    - Can only install one of: laravel/framework[v4.1.0, v4.0.3].
    - Can only install one of: laravel/framework[v4.1.0, v4.0.4].
    - Can only install one of: laravel/framework[v4.1.0, v4.0.5].
    - Can only install one of: laravel/framework[v4.1.0, v4.0.6].
    - Can only install one of: laravel/framework[v4.1.0, v4.0.7].
    - Can only install one of: laravel/framework[v4.1.0, v4.0.8].
    - Can only install one of: laravel/framework[v4.1.0, v4.0.9].
    - Installation request for laravel/framework 4.1.* -> satisfiable by laravel/framework[v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9].

Any idea?

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.