s/CliCommand/Cli\Command/g
[pharext/pharext] / src / pharext / Command.php
index f7b0c74c0f417b2dcdb6f43578c77d7acc65944c..0d30b552eadf2416a02d804ea62926f7d704ce0f 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
+        * @return pharext\Cli\Args
         */
        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