diff --git a/app/Console/Commands/AccountInfo.php b/app/Console/Commands/AccountInfo.php new file mode 100644 index 0000000..4f0a401 --- /dev/null +++ b/app/Console/Commands/AccountInfo.php @@ -0,0 +1,61 @@ +comment($line); + } + + /** + * Execute the console command. + * + * @return mixed + */ + public function handle() + { + $user = AccountHelpers::findUser($this->argument('user')); + if ($user === null) { + $this->comment("User not found."); + return; + } + + foreach ($user->getInformation() as $attribute => $value) { + $this->printInformationAttribute($attribute, $value); + } + } +} diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 54d1ae6..f9bf9f9 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -1,29 +1,30 @@ command('inspire') ->hourly(); } } diff --git a/app/Console/Services/AccountHelpers.php b/app/Console/Services/AccountHelpers.php new file mode 100644 index 0000000..8aacce4 --- /dev/null +++ b/app/Console/Services/AccountHelpers.php @@ -0,0 +1,45 @@ +=5.5.9", "laravel/framework": "5.1.*", - "keruald/globalfunctions": ">=0.2" + "keruald/globalfunctions": ">=0.3" }, "require-dev": { "fzaninotto/faker": "~1.4", "mockery/mockery": "0.9.*", "phpunit/phpunit": "~4.0", "phpspec/phpspec": "~2.1" }, "autoload": { "classmap": [ "database" ], "psr-4": { "AuthGrove\\": "app/" } }, "autoload-dev": { "classmap": [ "tests/TestCase.php" ] }, "scripts": { "post-install-cmd": [ "php artisan clear-compiled", "php artisan optimize" ], "post-update-cmd": [ "php artisan clear-compiled", "php artisan optimize" ], "post-root-package-install": [ "php -r \"copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "php artisan key:generate" ] }, "config": { "preferred-install": "dist" }, "minimum-stability": "dev", "prefer-stable": true }