X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fpharext%2FCommand.php;h=0d30b552eadf2416a02d804ea62926f7d704ce0f;hb=refs%2Ftags%2Fv4.1.2;hp=b174f7df2afee1a78c60d0a3b121e6df70d5a2a9;hpb=8b991a8b633610f7309d76f15b388bffd073d1f7;p=pharext%2Fpharext diff --git a/src/pharext/Command.php b/src/pharext/Command.php index b174f7d..0d30b55 100644 --- a/src/pharext/Command.php +++ b/src/pharext/Command.php @@ -7,9 +7,30 @@ 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(); @@ -27,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