Skip to content

Commit 08b47fe

Browse files
committed
Displaying name of created action
1 parent c83b5fc commit 08b47fe

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/Processors/Make.php

+3-8
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,9 @@ class Make extends Processor
2121

2222
public function handle(): void
2323
{
24-
$this->notification->task('Creating an operation', fn () => $this->run());
25-
}
26-
27-
protected function run(): void
28-
{
29-
$name = $this->getName();
30-
$path = $this->getPath();
24+
$pathWithName = $this->getPath().$this->getName();
3125

32-
$this->create($path . '/' . $name);
26+
$this->notification->task('Creating an operation ['.$pathWithName.']', fn () => $this->create($pathWithName));
3327
}
3428

3529
protected function create(string $path): void
@@ -59,6 +53,7 @@ protected function getFilename(string $branch): string
5953
->prepend($this->getTime())
6054
->finish('.php')
6155
->prepend($directory . '/')
56+
->ltrim('./')
6257
->toString();
6358
}
6459

0 commit comments

Comments
 (0)