Skip to content

Commit 31c7b1d

Browse files
authored
Update TailCommand
Adds the current signature for the Tail Command
1 parent abfae15 commit 31c7b1d

File tree

1 file changed

+6
-28
lines changed

1 file changed

+6
-28
lines changed

src/Console/TailCommand.php

+6-28
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@
1010
class TailCommand extends Command
1111
{
1212
/**
13-
* The console command name.
13+
* The console command signature.
1414
*
1515
* @var string
1616
*/
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.}';
1821

1922
/**
2023
* The console command description.
@@ -28,7 +31,7 @@ class TailCommand extends Command
2831
*
2932
* @return void
3033
*/
31-
public function fire()
34+
public function handle()
3235
{
3336
$path = $this->getPath($this->argument('connection'));
3437

@@ -162,29 +165,4 @@ protected function getRoot($connection)
162165
{
163166
return $this->laravel['config']['remote.connections.'.$connection.'.root'];
164167
}
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-
}
190168
}

0 commit comments

Comments
 (0)