X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fpharext%2FCommand.php;h=7664a35867e568f20ea812a7750f88fba0ac0c42;hb=8bb44cb1907aff0691bf0b40443ef81d2251c29f;hp=f7b0c74c0f417b2dcdb6f43578c77d7acc65944c;hpb=0ff7b26bce8f0dfbd1d4d45313705a94f2ac5e28;p=pharext%2Fpharext diff --git a/src/pharext/Command.php b/src/pharext/Command.php index f7b0c74..7664a35 100644 --- a/src/pharext/Command.php +++ b/src/pharext/Command.php @@ -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