Skip to content

Commit 5aeca7e

Browse files
authored
Merge pull request #1 from wilsenhc/copilot/fix-argument-declaration
Fix MakeLambdaFunction: rename getArguments() to getOptions() with correct option definition
2 parents 7950d4a + 6971c38 commit 5aeca7e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Commands/MakeLambdaFunction.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class MakeLambdaFunction extends GeneratorCommand
1818
*
1919
* @var string
2020
*/
21-
protected $signature = 'make:lambda-function {name} {--runtime= : The runtime that will be used to create the lambda function}';
21+
protected $signature = 'make:lambda-function {name} {--runtime=nodejs20.x : The runtime that will be used to create the lambda function}';
2222

2323
/**
2424
* The console command description.
@@ -85,15 +85,14 @@ protected function replaceClass($stub, $name)
8585
}
8686

8787
/**
88-
* Get the console command arguments.
88+
* Get the console command options.
8989
*
9090
* @return array
9191
*/
92-
protected function getArguments()
92+
protected function getOptions()
9393
{
9494
return [
95-
['force', 'f', InputOption::VALUE_NONE, 'Create the class even if the lambda function already exists'],
96-
['runtime', null, InputOption::VALUE_OPTIONAL, 'The runtime that will be used to create the lambda function'],
95+
['runtime', null, InputOption::VALUE_OPTIONAL, 'The runtime that will be used to create the lambda function', 'nodejs20.x'],
9796
];
9897
}
9998
}

0 commit comments

Comments
 (0)