Skip to content

Commit

Permalink
command update
Browse files Browse the repository at this point in the history
  • Loading branch information
komeylkalbali committed Mar 13, 2021
1 parent 189af89 commit 055704d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/Commands/GenerateModuleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,22 @@ public function handle()
die();
}

$this->info("
_____ _ _ _ _ _
/ ____|| | | | | | (_)| |
| (___ | |__ ___ | |_ __ _ | |__ _ | |_
\___ \ | '_ \ / _ \| __|/ _` || '_ \ | || __|
____) || | | || __/| |_| (_| || |_) || || |_
|_____/ |_| |_| \___| \__|\__,_||_.__/ |_| \__|
");
$this->info('Generating ... ');
$processes = count(\config()->get('modulegenerator') , COUNT_RECURSIVE);
$Progress = $this->getOutput()->createProgressBar($processes);
$Progress->setBarCharacter("/");
$moduleGenerator = app(ModuleGenerator::class);
$moduleGenerator->generate();
$Progress->finish();
$this->info("");
$this->alert("Generate Successfully");
$this->info("Generate Successfully");
}
}
2 changes: 1 addition & 1 deletion src/Commands/PublishModuleGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PublishModuleGeneratorCommand extends Command
*
* @var string
*/
protected $description = 'create your module';
protected $description = 'publish config file';

/**
* Create a new command instance.
Expand Down

0 comments on commit 055704d

Please sign in to comment.