diff --git a/src/Console/Commands/InitilizeCommand.php b/src/Console/Commands/InitilizeCommand.php index 8c5e08a..d716bd9 100644 --- a/src/Console/Commands/InitilizeCommand.php +++ b/src/Console/Commands/InitilizeCommand.php @@ -36,6 +36,6 @@ public function handle() ]); (new BackupController())->configureDatabaseDump(); - + Artisan::call("rapid:support"); } } diff --git a/src/Console/Commands/RapidKitSupportCommand.php b/src/Console/Commands/RapidKitSupportCommand.php index 18aa804..28d7e40 100644 --- a/src/Console/Commands/RapidKitSupportCommand.php +++ b/src/Console/Commands/RapidKitSupportCommand.php @@ -1,8 +1,11 @@ info('Welcome to Laravel Rapid Kit Support!'); + (new Banner())->renderTitle('Welcome to Laravel Rapid Kit Support!'); + (new Banner())->line("LARAVEL RAPID KIT " . Config::VERSION); + + Artisan::call('list rapid'); + $output = Artisan::output(); + (new Banner())->log($output); + } } diff --git a/src/RapidKitProvider.php b/src/RapidKitProvider.php index 0ad8b91..94509bc 100644 --- a/src/RapidKitProvider.php +++ b/src/RapidKitProvider.php @@ -2,11 +2,11 @@ namespace Intelrx\Rapidkit; -use App\Console\Commands\RapidKitSupportCommand; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\ServiceProvider; use Intelrx\Rapidkit\Console\Commands\InitilizeCommand; use Intelrx\Rapidkit\Console\Commands\ResourceGeneratorCommand; +use Intelrx\Rapidkit\Console\Commands\RapidKitSupportCommand; class RapidKitProvider extends ServiceProvider { @@ -29,6 +29,10 @@ public function boot(): void InitilizeCommand::class, RapidKitSupportCommand::class, ]); + + Artisan::call("rapid:install"); } + + } } diff --git a/src/assets/Banner.php b/src/assets/Banner.php index 5af47a9..622b208 100644 --- a/src/assets/Banner.php +++ b/src/assets/Banner.php @@ -15,8 +15,18 @@ public function log($message) fwrite(STDERR, "\e[32m$message\e[0m\n"); } + public function warn($message) + { + fwrite(STDERR, "\e[33m$message\e[0m\n"); + } + public function error($message) { fwrite(STDERR, "\e[31m$message\e[0m\n"); } + + public function line($message) + { + fwrite(STDERR, "$message\n"); + } } \ No newline at end of file diff --git a/src/config/config.php b/src/config/config.php new file mode 100644 index 0000000..8c2658b --- /dev/null +++ b/src/config/config.php @@ -0,0 +1,7 @@ +