projects
/
pharext
/
pharext
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
consistent exit codes
[pharext/pharext]
/
src
/
pharext
/
Command.php
diff --git
a/src/pharext/Command.php
b/src/pharext/Command.php
index b174f7df2afee1a78c60d0a3b121e6df70d5a2a9..7664a35867e568f20ea812a7750f88fba0ac0c42 100644
(file)
--- a/
src/pharext/Command.php
+++ b/
src/pharext/Command.php
@@
-7,6
+7,27
@@
namespace pharext;
*/
interface Command
{
*/
interface Command
{
+ /**
+ * Argument error
+ */
+ const EARGS = 1;
+ /**
+ * Build error
+ */
+ const EBUILD = 2;
+ /**
+ * Signature error
+ */
+ const ESIGN = 3;
+ /**
+ * Extract/unpack error
+ */
+ const EEXTRACT = 4;
+ /**
+ * Install error
+ */
+ const EINSTALL = 5;
+
/**
* Retrieve command line arguments
* @return pharext\CliArgs
/**
* Retrieve command line arguments
* @return pharext\CliArgs
@@
-27,13
+48,20
@@
interface Command
*/
public function info($fmt);
*/
public function info($fmt);
+ /**
+ * Print warning
+ * @param string $fmt
+ * @param string ...$args
+ */
+ public function warn($fmt);
+
/**
* Print error
* @param string $fmt
* @param string ...$args
*/
public function error($fmt);
/**
* Print error
* @param string $fmt
* @param string ...$args
*/
public function error($fmt);
-
+
/**
* Execute the command
* @param int $argc command line argument count
/**
* Execute the command
* @param int $argc command line argument count