Skip to content

Commit

Permalink
improved swagger command descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
eceltov committed Dec 6, 2024
1 parent 7923f19 commit 51c1c71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/commands/GenerateSwagger.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class GenerateSwagger extends Command
protected function configure()
{
$this->setName(self::$defaultName)->setDescription(
'Generate a swagger specification file from existing code.'
'Generate an OpenAPI documentation from the temporary file created by the swagger:annotate command.'
. ' The temporary file is deleted afterwards.'
);
}

Expand Down
4 changes: 3 additions & 1 deletion app/commands/SwaggerAnnotator.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ class SwaggerAnnotator extends Command

protected function configure(): void
{
$filePath = self::$autogeneratedAnnotationFilePath;
$this->setName(self::$defaultName)->setDescription(
'Annotate all methods with Swagger PHP annotations.'
"Extracts endpoint method annotations and puts them into a temporary file that can be used to generate"
. " an OpenAPI documentation. The file is located at {$filePath}"
);
}

Expand Down

0 comments on commit 51c1c71

Please sign in to comment.