10
10
class TailCommand extends Command
11
11
{
12
12
/**
13
- * The console command name .
13
+ * The console command signature .
14
14
*
15
15
* @var string
16
16
*/
17
- protected $ name = 'tail ' ;
17
+ protected $ signature = 'tail
18
+ {connection? : The remote connection name}
19
+ {--path= : The fully qualified path to the log file.}
20
+ {--lines=20 : The number of lines to tail.} ' ;
18
21
19
22
/**
20
23
* The console command description.
@@ -28,7 +31,7 @@ class TailCommand extends Command
28
31
*
29
32
* @return void
30
33
*/
31
- public function fire ()
34
+ public function handle ()
32
35
{
33
36
$ path = $ this ->getPath ($ this ->argument ('connection ' ));
34
37
@@ -162,29 +165,4 @@ protected function getRoot($connection)
162
165
{
163
166
return $ this ->laravel ['config ' ]['remote.connections. ' .$ connection .'.root ' ];
164
167
}
165
-
166
- /**
167
- * Get the console command arguments.
168
- *
169
- * @return array
170
- */
171
- protected function getArguments ()
172
- {
173
- return [
174
- ['connection ' , InputArgument::OPTIONAL , 'The remote connection name ' ],
175
- ];
176
- }
177
-
178
- /**
179
- * Get the console command options.
180
- *
181
- * @return array
182
- */
183
- protected function getOptions ()
184
- {
185
- return [
186
- ['path ' , null , InputOption::VALUE_OPTIONAL , 'The fully qualified path to the log file. ' ],
187
- ['lines ' , null , InputOption::VALUE_OPTIONAL , 'The number of lines to tail. ' , 20 ],
188
- ];
189
- }
190
168
}
0 commit comments