Skip to content

Commit

Permalink
Add option for a different block filename
Browse files Browse the repository at this point in the history
  • Loading branch information
robdekort committed Apr 18, 2023
1 parent aa42146 commit 49dbf6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/AddBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class AddBlock extends Command
public function handle()
{
$this->block_name = $this->ask('What should be the name for this block?');
$this->filename = Stringy::slugify($this->block_name, '_', Config::getShortLocale());
$this->filename = $this->ask('What should be the filename for this block?', Stringy::slugify($this->block_name, '_', Config::getShortLocale()));
$this->instructions = $this->ask('What should be the instructions for this block?');

try {
Expand Down

0 comments on commit 49dbf6e

Please sign in to comment.