Hello community, here is the log from the commit of package platformsh-cli for openSUSE:Factory checked in at 2018-03-31 15:37:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/platformsh-cli (Old) and /work/SRC/openSUSE:Factory/.platformsh-cli.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "platformsh-cli" Sat Mar 31 15:37:34 2018 rev:42 rq:592686 version:3.31.5 Changes: -------- --- /work/SRC/openSUSE:Factory/platformsh-cli/platformsh-cli.changes 2018-03-29 11:57:57.753280198 +0200 +++ /work/SRC/openSUSE:Factory/.platformsh-cli.new/platformsh-cli.changes 2018-03-31 15:37:58.647317345 +0200 @@ -1,0 +2,10 @@ +Sat Mar 31 00:59:13 UTC 2018 - [email protected] + +- Update to version 3.31.5: + * Release v3.31.5 + * [bot] add --party and --parrot options + * Add application.date_format to README + * Add application.date_format config option + * Smarter environment cache + +------------------------------------------------------------------- Old: ---- platformsh-cli-3.31.4.tar.xz New: ---- platformsh-cli-3.31.5.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ platformsh-cli.spec ++++++ --- /var/tmp/diff_new_pack.P0qTXn/_old 2018-03-31 15:37:59.899271950 +0200 +++ /var/tmp/diff_new_pack.P0qTXn/_new 2018-03-31 15:37:59.899271950 +0200 @@ -17,7 +17,7 @@ Name: platformsh-cli -Version: 3.31.4 +Version: 3.31.5 Release: 0 Summary: Tool for managing Platform.sh services from the command line # See licenses.txt for dependency licenses. ++++++ _service ++++++ --- /var/tmp/diff_new_pack.P0qTXn/_old 2018-03-31 15:37:59.931270790 +0200 +++ /var/tmp/diff_new_pack.P0qTXn/_new 2018-03-31 15:37:59.931270790 +0200 @@ -2,7 +2,7 @@ <service name="tar_scm" mode="disabled"> <param name="versionformat">@PARENT_TAG@</param> <param name="versionrewrite-pattern">v(.*)</param> - <param name="revision">refs/tags/v3.31.4</param> + <param name="revision">refs/tags/v3.31.5</param> <param name="url">git://github.com/platformsh/platformsh-cli.git</param> <param name="scm">git</param> <param name="changesgenerate">enable</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.P0qTXn/_old 2018-03-31 15:37:59.951270065 +0200 +++ /var/tmp/diff_new_pack.P0qTXn/_new 2018-03-31 15:37:59.955269920 +0200 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">git://github.com/platformsh/platformsh-cli.git</param> - <param name="changesrevision">4ef5eb28776e289a4e8131b7dfb192dded4ed5b3</param> + <param name="changesrevision">6602a8a0720a2208c777e2cf892fe130f274aaf6</param> </service> </servicedata> ++++++ platformsh-cli-3.31.4.tar.xz -> platformsh-cli-3.31.5.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/README.md new/platformsh-cli-3.31.5/README.md --- old/platformsh-cli-3.31.4/README.md 2018-03-28 22:44:52.000000000 +0200 +++ new/platformsh-cli-3.31.5/README.md 2018-03-30 17:03:36.000000000 +0200 @@ -222,6 +222,9 @@ # 'browser'). login_method: browser + # The default date format string. For a list of formats, see: http://php.net/manual/en/function.date.php + date_format: c + local: # Set this to true to avoid some Windows symlink issues. copy_on_windows: false diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/config.yaml new/platformsh-cli-3.31.5/config.yaml --- old/platformsh-cli-3.31.4/config.yaml 2018-03-28 22:44:52.000000000 +0200 +++ new/platformsh-cli-3.31.5/config.yaml 2018-03-30 17:03:36.000000000 +0200 @@ -1,7 +1,7 @@ # Metadata about the CLI application itself. application: name: 'Platform.sh CLI' - version: '3.31.4' + version: '3.31.5' executable: 'platform' package_name: 'platformsh/cli' installer_url: 'https://platform.sh/cli/installer' @@ -17,6 +17,11 @@ # This can be overridden in the user config file. login_method: browser + # The default date format string. This can be overridden in the user config + # file, or by the --date-fmt option. For a list of formats, see: + # http://php.net/manual/en/function.date.php + date_format: c + # Disabled commands (a list of full command names). disabled_commands: [] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/dist/manifest.json new/platformsh-cli-3.31.5/dist/manifest.json --- old/platformsh-cli-3.31.4/dist/manifest.json 2018-03-28 22:44:52.000000000 +0200 +++ new/platformsh-cli-3.31.5/dist/manifest.json 2018-03-30 17:03:36.000000000 +0200 @@ -1,10 +1,10 @@ [ { "name": "platform.phar", - "sha1": "e65c563a5f4ebca95c3f40d04b2f1cc1d5479f84", - "sha256": "e460d8c574664e236bf58ddba2899d9a46a0205bf68f956a554d0b23880cd44e", - "url": "https://github.com/platformsh/platformsh-cli/releases/download/v3.31.4/platform.phar", - "version": "3.31.4", + "sha1": "7e194e6a78ae62e53e46cf0995b9f04c00e18c1c", + "sha256": "d530dfe7e98b592be2e2b878c62e8ea8341319aabe982d5d318d3f53ceae2008", + "url": "https://github.com/platformsh/platformsh-cli/releases/download/v3.31.5/platform.phar", + "version": "3.31.5", "php": { "min": "5.5.9" }, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/resources/parrot/0.txt new/platformsh-cli-3.31.5/resources/parrot/0.txt --- old/platformsh-cli-3.31.4/resources/parrot/0.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/platformsh-cli-3.31.5/resources/parrot/0.txt 2018-03-30 17:03:36.000000000 +0200 @@ -0,0 +1,18 @@ + .cccc;;cc;';c. + .,:dkdc:;;:c:,:d:. + .loc'.,cc::c:::,..;:. + .cl;....;dkdccc::,...c; + .c:,';:'..ckc',;::;....;c. + .c:'.,dkkoc:ok:;llllc,,c,';:. + .;c,';okkkkkkkk:;lllll,:kd;.;:,. + co..:kkkkkkkkkk:;llllc':kkc..oNc + .cl;.,oxkkkkkkkkkc,:cll;,okkc'.cO; + ;k:..ckkkkkkkkkkkl..,;,.;xkko:',l' + .,...';dkkkkkkkkkkd;.....ckkkl'.cO; + .,,:,.;oo:ckkkkkkkkkkkdoc;;cdkkkc..cd, + .cclo;,ccdkkl;llccdkkkkkkkkkkkkkkkd,.c; + .lol:;;okkkkkxooc::coodkkkkkkkkkkkko'.oc + .c:'..lkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkd,.oc + .lo;,:cdkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkd,.c; +,dx:..;lllllllllllllllllllllllllllllllllc'... +cNO;........................................ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/resources/parrot/1.txt new/platformsh-cli-3.31.5/resources/parrot/1.txt --- old/platformsh-cli-3.31.4/resources/parrot/1.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/platformsh-cli-3.31.5/resources/parrot/1.txt 2018-03-30 17:03:36.000000000 +0200 @@ -0,0 +1,18 @@ + .ckx;'........':c. + .,:c:::::oxxocoo::::,',. + .odc'..:lkkoolllllo;..;d, + ;c..:o:..;:..',;'.......;. + ,c..:0Xx::o:.,cllc:,'::,.,c. + ;c;lkXKXXXXl.;lllll;lKXOo;':c. + ,dc.oXXXXXXXXl.,lllll;lXXXXx,c0: + ;Oc.oXXXXXXXXo.':ll:;'oXXXXO;,l' + 'l;;kXXXXXXXXd'.'::'..dXXXXO;,l' + 'l;:0XXXXXXXX0x:...,:o0XXXXx,:x, + 'l;;kXXXXXXXXXKkol;oXXXXXXXO;oNc + ,c'..ckk0XXXXXXXXXX00XXXXXXX0:;o:. + .':;..:do::ooookXXXXXXXXXXXXXXXo..c; + .',',:co0XX0kkkxxOXXXXXXXXXXXXXXXOc..;l. + .:;'..oXXXXXXXXXXXXXXXXXXXXXXXXXXXXXko;';:. +.ldc..:oOXKXXXXXXKXXKXXXXXXXXXXXXXXXXXXXo..oc +:0o...:dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxo,.:, +cNo........................................;' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/resources/parrot/2.txt new/platformsh-cli-3.31.5/resources/parrot/2.txt --- old/platformsh-cli-3.31.4/resources/parrot/2.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/platformsh-cli-3.31.5/resources/parrot/2.txt 2018-03-30 17:03:36.000000000 +0200 @@ -0,0 +1,18 @@ + .cc;. ... .;c. + .,,cc:cc:lxxxl:ccc:;,. + .lo;...lKKklllookl..cO; + .cl;.,:'.okl;..''.;,..';:. + .:o;;dkd,.ll..,cc::,..,'.;:,. + co..lKKKkokl.':lloo;''ol..;dl. + .,c;.,xKKKKKKo.':llll;.'oOxl,.cl,. + cNo..lKKKKKKKo'';llll;;okKKKl..oNc + cNo..lKKKKKKKko;':c:,'lKKKKKo'.oNc + cNo..lKKKKKKKKKl.....'dKKKKKxc,l0: + .c:'.lKKKKKKKKKk;....lKKKKKKo'.oNc + ,:.'oxOKKKKKKKOxxxxOKKKKKKxc,;ol:. + ;c..'':oookKKKKKKKKKKKKKKKKKk:.'clc. + ,xl'.,oxo;'';oxOKKKKKKKKKKKKKKKOxxl:::;,. + .dOc..lKKKkoooookKKKKKKKKKKKKKKKKKKKxl,;ol. + cx,';okKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKl..;lc. + co..:dddddddddddddddddddddddddddddddddl::',::. + co........................................... diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/resources/parrot/3.txt new/platformsh-cli-3.31.5/resources/parrot/3.txt --- old/platformsh-cli-3.31.4/resources/parrot/3.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/platformsh-cli-3.31.5/resources/parrot/3.txt 2018-03-30 17:03:36.000000000 +0200 @@ -0,0 +1,18 @@ + .ccccccc. + .,,,;cooolccoo;;,,. + .dOx;..;lllll;..;xOd. + .cdo;',loOXXXXXkll;';odc. + ,ol:;c,':oko:cccccc,...ckl. + ;c.;kXo..::..;c::'.......oc +,dc..oXX0kk0o.':lll;..cxxc.,ld, +kNo.'oXXXXXXo',:lll;..oXXOo;cOd. +KOc;oOXXXXXXo.':lol;..dXXXXl';xc +Ol,:k0XXXXXX0c.,clc'.:0XXXXx,.oc +KOc;dOXXXXXXXl..';'..lXXXXXo..oc +dNo..oXXXXXXXOx:..'lxOXXXXXk,.:; .. +cNo..lXXXXXXXXXOolkXXXXXXXXXkl,..;:';. +.,;'.,dkkkkk0XXXXXXXXXXXXXXXXXOxxl;,;,;l:. + ;c.;:''''':doOXXXXXXXXXXXXXXXXXXOdo;';clc. + ;c.lOdood:'''oXXXXXXXXXXXXXXXXXXXXXk,..;ol. + ';.:xxxxxocccoxxxxxxxxxxxxxxxxxxxxxxl::'.';;. + ';........................................;l' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/resources/parrot/4.txt new/platformsh-cli-3.31.5/resources/parrot/4.txt --- old/platformsh-cli-3.31.4/resources/parrot/4.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/platformsh-cli-3.31.5/resources/parrot/4.txt 2018-03-30 17:03:36.000000000 +0200 @@ -0,0 +1,18 @@ + + .;:;;,.,;;::,. + .;':;........'co:. + .clc;'':cllllc::,.':c. + .lo;;o:coxdllllllc;''::,,. +.c:'.,cl,.'l:',,;;'......cO; +do;';oxoc;:l;;llllc'.';;'.,;. +c..ckkkkkkkd,;llllc'.:kkd;.':c. +'.,okkkkkkkkc;lllll,.:kkkdl,cO; +..;xkkkkkkkkc,ccll:,;okkkkk:,co, +..,dkkkkkkkkc..,;,'ckkkkkkkc;ll. +..'okkkkkkkko,....'okkkkkkkc,:c. +c..ckkkkkkkkkdl;,:okkkkkkkkd,.',';. +d..':lxkkkkkkkkxxkkkkkkkkkkkdoc;,;'..'.,. +o...'';llllldkkkkkkkkkkkkkkkkkkdll;..'cdo. +o..,l;'''''';dkkkkkkkkkkkkkkkkkkkkdlc,..;lc. +o..;lc;;;;;;,,;clllllllllllllllllllllc'..,:c. +o..........................................;' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/resources/parrot/5.txt new/platformsh-cli-3.31.5/resources/parrot/5.txt --- old/platformsh-cli-3.31.4/resources/parrot/5.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/platformsh-cli-3.31.5/resources/parrot/5.txt 2018-03-30 17:03:36.000000000 +0200 @@ -0,0 +1,18 @@ + + .,,,,,,,,,. + .ckKxodooxOOdcc. + .cclooc'....';;cool. + .loc;;;;clllllc;;;;;:;,. + .c:'.,okd;;cdo:::::cl,..oc + .:o;';okkx;';;,';::;'....,:,. + co..ckkkkkddkc,cclll;.,c:,:o:. + co..ckkkkkkkk:,cllll;.:kkd,.':c. +.,:;.,okkkkkkkk:,cclll;.ckkkdl;;o:. +cNo..ckkkkkkkkko,.;loc,.ckkkkkc..oc +,dd;.:kkkkkkkkkx;..;:,.'lkkkkko,.:, + ;:.ckkkkkkkkkkc.....;ldkkkkkk:.,' +,dc..'okkkkkkkkkxoc;;cxkkkkkkkkc..,;,. +kNo..':lllllldkkkkkkkkkkkkkkkkkdcc,.;l. +KOc,c;''''''';lldkkkkkkkkkkkkkkkkkc..;lc. +xx:':;;;;,.,,...,;;cllllllllllllllc;'.;od, +cNo.....................................oc diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/resources/parrot/6.txt new/platformsh-cli-3.31.5/resources/parrot/6.txt --- old/platformsh-cli-3.31.4/resources/parrot/6.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/platformsh-cli-3.31.5/resources/parrot/6.txt 2018-03-30 17:03:36.000000000 +0200 @@ -0,0 +1,18 @@ + + + .ccccccc. + .ccckNKOOOOkdcc. + .;;cc:ccccccc:,:c::,,. + .c;:;.,cccllxOOOxlllc,;ol. + .lkc,coxo:;oOOxooooooo;..:, + .cdc.,dOOOc..cOd,.',,;'....':l. + cNx'.lOOOOxlldOc..;lll;.....cO; + ,do;,:dOOOOOOOOOl'':lll;..:d:''c, + co..lOOOOOOOOOOOl'':lll;.'lOd,.cd. + co.'dOOOOOOOOOOOo,.;llc,.,dOOc..dc + co..lOOOOOOOOOOOOc.';:,..cOOOl..oc + .,:;.'::lxOOOOOOOOOo:'...,:oOOOc.'dc + ;Oc..cl'':lldOOOOOOOOdcclxOOOOx,.cd. + .:;';lxl''''':lldOOOOOOOOOOOOOOc..oc +,dl,.'cooc:::,....,::coooooooooooc'.c: +cNo.................................oc diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/resources/parrot/7.txt new/platformsh-cli-3.31.5/resources/parrot/7.txt --- old/platformsh-cli-3.31.4/resources/parrot/7.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/platformsh-cli-3.31.5/resources/parrot/7.txt 2018-03-30 17:03:36.000000000 +0200 @@ -0,0 +1,18 @@ + + + + .cccccccc. + .,,,;;cc:cccccc:;;,. + .cdxo;..,::cccc::,..;l. + ,do:,,:c:coxxdllll:;,';:,. + .cl;.,oxxc'.,cc,.';;;'...oNc + ;Oc..cxxxc'.,c;..;lll;...cO; + .;;',:ldxxxdoldxc..;lll:'...'c, + ;c..cxxxxkxxkxxxc'.;lll:'','.cdc. + .c;.;odxxxxxxxxxxxd;.,cll;.,l:.'dNc + .:,''ccoxkxxkxxxxxxx:..,:;'.:xc..oNc + .lc,.'lc':dxxxkxxxxxxxol,...',lx:..dNc + .:,',coxoc;;ccccoxxxxxxxxo:::oxxo,.cdc. + .;':;.'oxxxxxc''''';cccoxxxxxxxxxxxc..oc +,do:'..,:llllll:;;;;;;,..,;:lllllllll;..oc +cNo.....................................oc diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/resources/parrot/8.txt new/platformsh-cli-3.31.5/resources/parrot/8.txt --- old/platformsh-cli-3.31.4/resources/parrot/8.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/platformsh-cli-3.31.5/resources/parrot/8.txt 2018-03-30 17:03:36.000000000 +0200 @@ -0,0 +1,18 @@ + + + .ccccc. + .cc;'coooxkl;. + .:c:::c:,,,,,;c;;,.'. + .clc,',:,..:xxocc;'..c; + .c:,';:ox:..:c,,,,,,...cd, + .c:'.,oxxxxl::l:.,loll;..;ol. + ;Oc..:xxxxxxxxx:.,llll,....oc + .,;,',:loxxxxxxxxx:.,llll;.,,.'ld, + .lo;..:xxxxxxxxxxxx:.'cllc,.:l:'cO; + .:;...'cxxxxxxxxxxxxoc;,::,..cdl;;l' + .cl;':,'';oxxxxxxdxxxxxx:....,cooc,cO; + .,,,::;,lxoc:,,:lxxxxxxxxxxxo:,,;lxxl;'oNc + .cdxo;':lxxxxxxc'';cccccoxxxxxxxxxxxxo,.;lc. + .loc'.'lxxxxxxxxocc;''''';ccoxxxxxxxxx:..oc +olc,..',:cccccccccccc:;;;;;;;;:ccccccccc,.'c, +Ol;......................................;l' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/resources/parrot/9.txt new/platformsh-cli-3.31.5/resources/parrot/9.txt --- old/platformsh-cli-3.31.4/resources/parrot/9.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/platformsh-cli-3.31.5/resources/parrot/9.txt 2018-03-30 17:03:36.000000000 +0200 @@ -0,0 +1,18 @@ + + ,ddoodd, + .cc' ,ooccoo,'cc. + .ccldo;...',,...;oxdc. + .,,:cc;.,'..;lol;;,'..lkl. + .dOc';:ccl;..;dl,.''.....oc + .,lc',cdddddlccld;.,;c::'..,cc:. + cNo..:ddddddddddd;':clll;,c,';xc + .lo;,clddddddddddd;':clll;:kc..;' + .,c;..:ddddddddddddd:';clll,;ll,.. + ;Oc..';:ldddddddddddl,.,c:;';dd;.. + .''',:c:,'cdddddddddddo:,''..'cdd;.. + .cdc';lddd:';lddddddddddddd;.';lddl,.. + .,;::;,cdddddol;;lllllodddddddlcldddd:.'l; + .dOc..,lddddddddlcc:;'';cclddddddddddd;;ll. + .coc,;::ldddddddddddddlcccc:ldddddddddl:,cO; +,xl::,..,cccccccccccccccccccccccccccccccc:;':xx, +cNd.........................................;lOc diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/src/Command/BotCommand.php new/platformsh-cli-3.31.5/src/Command/BotCommand.php --- old/platformsh-cli-3.31.4/src/Command/BotCommand.php 2018-03-28 22:44:52.000000000 +0200 +++ new/platformsh-cli-3.31.5/src/Command/BotCommand.php 2018-03-30 17:03:36.000000000 +0200 @@ -2,8 +2,9 @@ namespace Platformsh\Cli\Command; -use Platformsh\Cli\Console\Bot; +use Platformsh\Cli\Console\Animation; use Symfony\Component\Console\Input\InputInterface; +use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class BotCommand extends CommandBase @@ -13,15 +14,45 @@ protected function configure() { - $this->setName('bot')->setDescription('The ' . $this->config()->get('service.name') . ' Bot'); + $this->setName('bot') + ->setDescription('The ' . $this->config()->get('service.name') . ' Bot') + ->addOption('party', null, InputOption::VALUE_NONE) + ->addOption('parrot', null, InputOption::VALUE_NONE); } protected function execute(InputInterface $input, OutputInterface $output) { - $bot = new Bot($output, $this->config()->get('service.name')); + $dir = CLI_ROOT . '/resources/bot'; + $signature = $this->config()->get('service.name'); + $party = $input->getOption('party'); + $interval = $party ? 120000 : 500000; + + // With thanks to https://github.com/jmhobbs/terminal-parrot + if ($input->getOption('parrot')) { + $dir = dirname($dir) . '/parrot'; + $interval = $party ? 70000 : 100000; + $signature = ''; + } + + $frames = []; + foreach (scandir($dir) as $filename) { + if ($filename[0] !== '.') { + $frames[] = file_get_contents($dir . '/' . $filename); + } + } + + if ($signature) { + $frames = $this->addSignature($frames, $signature); + } + + if ($party) { + $frames = $this->addColor($frames); + } + + $animation = new Animation($output, $frames, $interval); if (!$output->isDecorated()) { - $bot->render(); + $animation->render(); return; } @@ -35,7 +66,35 @@ } while (true) { - $bot->render(); + $animation->render(); + } + } + + private function addSignature(array $frames, $signature) + { + $indent = ' '; + if (strlen($signature) > 0) { + $signatureIndent = str_repeat(' ', strlen($indent) + 5 - floor(strlen($signature) / 2)); + $signature = "\n" . $signatureIndent . '<info>' . $signature . '</info>'; } + + return array_map(function ($frame) use ($indent, $signature) { + return preg_replace('/^/m', $indent, $frame) . $signature; + }, $frames); + } + + private function addColor(array $frames) + { + $colors = ['red', 'yellow', 'green', 'blue', 'magenta', 'cyan', 'white']; + $partyFrames = []; + for ($i = 1; $i <= 7; $i++) { + foreach ($frames as $frame) { + shuffle($colors); + $color = reset($colors); + $partyFrames[] = "<fg=$color>$frame</>"; + } + } + + return $partyFrames; } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/src/Command/CommandBase.php new/platformsh-cli-3.31.5/src/Command/CommandBase.php --- old/platformsh-cli-3.31.4/src/Command/CommandBase.php 2018-03-28 22:44:52.000000000 +0200 +++ new/platformsh-cli-3.31.5/src/Command/CommandBase.php 2018-03-30 17:03:36.000000000 +0200 @@ -327,7 +327,7 @@ { $success = false; if ($this->output && $this->input && $this->input->isInteractive()) { - $method = $this->config()->get('application.login_method'); + $method = $this->config()->getWithDefault('application.login_method', 'browser'); if ($method === 'browser') { /** @var \Platformsh\Cli\Service\QuestionHelper $questionHelper */ $questionHelper = $this->getService('question_helper'); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/src/Command/Integration/IntegrationCommandBase.php new/platformsh-cli-3.31.5/src/Command/Integration/IntegrationCommandBase.php --- old/platformsh-cli-3.31.4/src/Command/Integration/IntegrationCommandBase.php 2018-03-28 22:44:52.000000000 +0200 +++ new/platformsh-cli-3.31.5/src/Command/Integration/IntegrationCommandBase.php 2018-03-30 17:03:36.000000000 +0200 @@ -201,9 +201,7 @@ 'health.email', ]], 'description' => 'The From address for alert emails', - 'default' => $this->config()->has('service.default_from_address') - ? $this->config()->get('service.default_from_address') - : null, + 'default' => $this->config()->getWithDefault('service.default_from_address', null), ]), 'recipients' => new ArrayField('Recipients', [ 'conditions' => ['type' => [ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/src/Command/Self/SelfReleaseCommand.php new/platformsh-cli-3.31.5/src/Command/Self/SelfReleaseCommand.php --- old/platformsh-cli-3.31.4/src/Command/Self/SelfReleaseCommand.php 2018-03-28 22:44:52.000000000 +0200 +++ new/platformsh-cli-3.31.5/src/Command/Self/SelfReleaseCommand.php 2018-03-30 17:03:36.000000000 +0200 @@ -14,10 +14,8 @@ protected function configure() { - $defaultRepo = $this->config()->has('application.github_repo') - ? $this->config()->get('application.github_repo') : null; - $defaultReleaseBranch = $this->config()->has('application.release_branch') - ? $this->config()->get('application.release_branch') : 'master'; + $defaultRepo = $this->config()->getWithDefault('application.github_repo', null); + $defaultReleaseBranch = $this->config()->getWithDefault('application.release_branch', 'master'); $this ->setName('self:release') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/src/Command/WelcomeCommand.php new/platformsh-cli-3.31.5/src/Command/WelcomeCommand.php --- old/platformsh-cli-3.31.4/src/Command/WelcomeCommand.php 2018-03-28 22:44:52.000000000 +0200 +++ new/platformsh-cli-3.31.5/src/Command/WelcomeCommand.php 2018-03-30 17:03:36.000000000 +0200 @@ -47,7 +47,7 @@ } // Show the environments. - $this->runOtherCommand('environments'); + $this->runOtherCommand('environments', ['--refresh' => 0]); $this->stdErr->writeln("\nYou can list other projects by running <info>$executable projects</info>\n"); } else { // The project is not known. Show all projects. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/src/Service/Api.php new/platformsh-cli-3.31.5/src/Service/Api.php --- old/platformsh-cli-3.31.4/src/Service/Api.php 2018-03-28 22:44:52.000000000 +0200 +++ new/platformsh-cli-3.31.5/src/Service/Api.php 2018-03-30 17:03:36.000000000 +0200 @@ -373,18 +373,21 @@ $environments = $this->getEnvironments($project, $refresh); - // Retry if the environment was not found in the cache. - if (!isset($environments[$id]) - && $refresh === null - && !self::$environmentsCacheRefreshed) { - $environments = $this->getEnvironments($project, true); - } - // Look for the environment by ID. if (isset($environments[$id])) { return $environments[$id]; } + // Retry directly if the environment was not found in the cache. + if ($refresh === null) { + if ($environment = $project->getEnvironment($id)) { + // If the environment was found directly, the cache must be out + // of date. + $this->clearEnvironmentsCache($project->id); + return $environment; + } + } + // Look for the environment by machine name. if ($tryMachineName) { foreach ($environments as $environment) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/src/Service/Config.php new/platformsh-cli-3.31.5/src/Service/Config.php --- old/platformsh-cli-3.31.4/src/Service/Config.php 2018-03-28 22:44:52.000000000 +0200 +++ new/platformsh-cli-3.31.5/src/Service/Config.php 2018-03-30 17:03:36.000000000 +0200 @@ -81,6 +81,24 @@ } /** + * Get a configuration value, specifying a default if it does not exist. + * + * @param string $name + * @param mixed $default + * + * @return mixed + */ + public function getWithDefault($name, $default) + { + $value = NestedArrayUtil::getNestedArrayValue(self::$config, explode('.', $name), $exists); + if (!$exists) { + return $default; + } + + return $value; + } + + /** * @return string */ public function getUserConfigDir() @@ -205,6 +223,7 @@ 'experimental' => 'experimental', 'updates' => 'updates', 'application.login_method' => 'application.login_method', + 'application.date_format' => 'application.date_format', ]; $userConfig = $this->getUserConfig(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/src/Service/PropertyFormatter.php new/platformsh-cli-3.31.5/src/Service/PropertyFormatter.php --- old/platformsh-cli-3.31.4/src/Service/PropertyFormatter.php 2018-03-28 22:44:52.000000000 +0200 +++ new/platformsh-cli-3.31.5/src/Service/PropertyFormatter.php 2018-03-30 17:03:36.000000000 +0200 @@ -11,14 +11,16 @@ class PropertyFormatter implements InputConfiguringInterface { - const DEFAULT_DATE_FORMAT = 'c'; - /** @var InputInterface|null */ protected $input; - public function __construct(InputInterface $input = null) + /** @var \Platformsh\Cli\Service\Config */ + protected $config; + + public function __construct(InputInterface $input = null, Config $config = null) { $this->input = $input; + $this->config = $config ?: new Config(); } /** @@ -70,7 +72,8 @@ null, InputOption::VALUE_REQUIRED, 'The date format (as a PHP date format string)', - self::DEFAULT_DATE_FORMAT + // @todo refactor so this can be non-static and use injected config + (new Config())->getWithDefault('application.date_format', 'c') )); } @@ -85,7 +88,9 @@ if (isset($this->input) && $this->input->hasOption('date-fmt')) { $format = $this->input->getOption('date-fmt'); } - $format = $format ?: self::DEFAULT_DATE_FORMAT; + if ($format === null) { + $format = $this->config->getWithDefault('application.date_format', 'c'); + } // Workaround for the ssl.expires_on date, which is currently a // timestamp in milliseconds. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.31.4/tests/ConfigTest.php new/platformsh-cli-3.31.5/tests/ConfigTest.php --- old/platformsh-cli-3.31.4/tests/ConfigTest.php 2018-03-28 22:44:52.000000000 +0200 +++ new/platformsh-cli-3.31.5/tests/ConfigTest.php 2018-03-30 17:03:36.000000000 +0200 @@ -15,6 +15,7 @@ $this->assertTrue($config->has('application.name')); $this->assertFalse($config->has('nonexistent')); $this->assertEquals($config->get('application.name'), 'Mock CLI'); + $this->assertEquals(123, $config->getWithDefault('nonexistent', 123)); } /** ++++++ platformsh-cli-vendor.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/autoload.php new/vendor/autoload.php --- old/vendor/autoload.php 2018-03-29 04:01:46.828820489 +0200 +++ new/vendor/autoload.php 2018-03-31 02:59:16.463102901 +0200 @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInitabedc0cb3383310d6509812bb78d1eb1::getLoader(); +return ComposerAutoloaderInit1d4b01237e44e16ca3a54bed97926edf::getLoader(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/composer/autoload_real.php new/vendor/composer/autoload_real.php --- old/vendor/composer/autoload_real.php 2018-03-29 04:01:46.828820489 +0200 +++ new/vendor/composer/autoload_real.php 2018-03-31 02:59:16.463102901 +0200 @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInitabedc0cb3383310d6509812bb78d1eb1 +class ComposerAutoloaderInit1d4b01237e44e16ca3a54bed97926edf { private static $loader; @@ -19,15 +19,15 @@ return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInitabedc0cb3383310d6509812bb78d1eb1', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit1d4b01237e44e16ca3a54bed97926edf', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInitabedc0cb3383310d6509812bb78d1eb1', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit1d4b01237e44e16ca3a54bed97926edf', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInitabedc0cb3383310d6509812bb78d1eb1::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit1d4b01237e44e16ca3a54bed97926edf::getInitializer($loader)); } else { $map = require __DIR__ . '/autoload_namespaces.php'; foreach ($map as $namespace => $path) { @@ -48,19 +48,19 @@ $loader->register(true); if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInitabedc0cb3383310d6509812bb78d1eb1::$files; + $includeFiles = Composer\Autoload\ComposerStaticInit1d4b01237e44e16ca3a54bed97926edf::$files; } else { $includeFiles = require __DIR__ . '/autoload_files.php'; } foreach ($includeFiles as $fileIdentifier => $file) { - composerRequireabedc0cb3383310d6509812bb78d1eb1($fileIdentifier, $file); + composerRequire1d4b01237e44e16ca3a54bed97926edf($fileIdentifier, $file); } return $loader; } } -function composerRequireabedc0cb3383310d6509812bb78d1eb1($fileIdentifier, $file) +function composerRequire1d4b01237e44e16ca3a54bed97926edf($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { require $file; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/composer/autoload_static.php new/vendor/composer/autoload_static.php --- old/vendor/composer/autoload_static.php 2018-03-29 04:01:46.828820489 +0200 +++ new/vendor/composer/autoload_static.php 2018-03-31 02:59:16.463102901 +0200 @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInitabedc0cb3383310d6509812bb78d1eb1 +class ComposerStaticInit1d4b01237e44e16ca3a54bed97926edf { public static $files = array ( '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', @@ -195,9 +195,9 @@ public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitabedc0cb3383310d6509812bb78d1eb1::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitabedc0cb3383310d6509812bb78d1eb1::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInitabedc0cb3383310d6509812bb78d1eb1::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit1d4b01237e44e16ca3a54bed97926edf::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit1d4b01237e44e16ca3a54bed97926edf::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit1d4b01237e44e16ca3a54bed97926edf::$classMap; }, null, ClassLoader::class); }
