forked from wp-cli/php-cli-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommand.php
More file actions
43 lines (38 loc) · 964 Bytes
/
Command.php
File metadata and controls
43 lines (38 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Console utilities
*
* PHP versions 5
*
* @category Console
* @package Console
* @author James Logsdon <jlogsdon@php.net>
* @copyright 2010 James Logsdon
* @license http://www.opensource.org/licenses/mit-license.php MIT License
* @link http://www.github.com/jlogsdon/php-cli-tools
*/
namespace Console;
/**
* Console command
*
* @category Console
* @package Console
* @author James Logsdon <jlogsdon@php.net>
* @copyright 2010 James Logsdon
* @license http://www.opensource.org/licenses/mit-license.php MIT License
* @link http://www.github.com/jlogsdon/php-cli-tools
*/
abstract class Command {
// main() {{{
/**
* Default command run when no sub-command is called. This command displays
* a list of available sub-commands.
*
* @return void
*/
public function main() {
echo "Main Command. override the main() method to change it.\n";
}
// }}}
}
?>