update README
[pharext/pharext] / src / pharext / Command.php
index f7b0c74c0f417b2dcdb6f43578c77d7acc65944c..7664a35867e568f20ea812a7750f88fba0ac0c42 100644 (file)
@@ -7,12 +7,40 @@ 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
         */
        public function getArgs();
        
+       /**
+        * Print debug message
+        * @param string $fmt
+        * @param string ...$args
+        */
+       public function debug($fmt);
+       
        /**
         * Print info
         * @param string $fmt
@@ -20,13 +48,20 @@ interface Command
         */
        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);
-       
+
        /**
         * Execute the command
         * @param int $argc command line argument count