Skip to content

Commit

Permalink
refactor(console): update make:controller command parameters to be …
Browse files Browse the repository at this point in the history
…simpler (#761)
  • Loading branch information
gturpin-dev authored Nov 20, 2024
1 parent e76c1f8 commit 9835d2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Tempest/Database/src/Commands/MakeModelCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __invoke(
shouldOverride: $shouldOverride,
);

$this->console->success(sprintf('File successfully created at "%s".', $targetPath));
$this->console->success(sprintf('Model successfully created at "%s".', $targetPath));
} catch (FileGenerationAbortedException|FileGenerationFailedException $e) {
$this->console->error($e->getMessage());
}
Expand Down
4 changes: 3 additions & 1 deletion src/Tempest/Http/src/Commands/MakeControllerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ public function __invoke(
)]
string $className,
#[ConsoleArgument(
name: 'path',
help: 'The path of the route',
)]
?string $controllerPath = null,
#[ConsoleArgument(
name: 'view',
help: 'The name of the view returned from the controller',
)]
?string $controllerView = null,
Expand All @@ -50,7 +52,7 @@ public function __invoke(
],
);

$this->success(sprintf('File successfully created at "%s".', $targetPath));
$this->success(sprintf('Controller successfully created at "%s".', $targetPath));
} catch (FileGenerationAbortedException|FileGenerationFailedException $e) {
$this->error($e->getMessage());
}
Expand Down

0 comments on commit 9835d2e

Please # to comment.