consistent exit codes
[pharext/pharext] / src / pharext / Command.php
index 61b8810adcffd5bb2c65dd116a493743d7e81538..7664a35867e568f20ea812a7750f88fba0ac0c42 100644 (file)
@@ -7,6 +7,27 @@ namespace pharext;
  */
 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