Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
wangta69 committed Oct 15, 2024
1 parent 1c4d439 commit e355a37
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 73 deletions.
23 changes: 14 additions & 9 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
<?php

namespace Pondol\Editor\Console;

use Illuminate\Console\Command;
// use Illuminate\Filesystem\Filesystem;
// use Illuminate\Support\Str;
// use Symfony\Component\Process\PhpExecutableFinder;
// use Symfony\Component\Process\Process;

class InstallCommand extends Command
{
// use InstallsBladeStack;

/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'pondol:install-editor';
protected $signature = 'pondol:install {composer=editor} {type=full}'; // full, simple, skip

/**
* The console command description.
Expand All @@ -26,6 +19,8 @@ class InstallCommand extends Command
*/
protected $description = 'Install the Laravel Editor controllers and resources';

// protected $composer, $type;


public function __construct()
{
Expand All @@ -34,7 +29,17 @@ public function __construct()

public function handle()
{
return $this->installLaravelEditor();
$composer = $this->argument('composer');
$type = $this->argument('type');
if($composer === 'editor') {
switch($type) {
case 'full':
return $this->installLaravelEditor();
default:
return;
}
}
return;
}


Expand Down
64 changes: 0 additions & 64 deletions src/Console/InstallSimpleCommand.php

This file was deleted.

0 comments on commit e355a37

Please sign in to comment.