Example #1
0
 /**
  * @param \Peanut\Console\Application $app
  */
 public function execute(\Peanut\Console\Application $app)
 {
     $manager = new Manager($manifest = Manifest::loadFile('https://raw.githubusercontent.com/yejune/bootapp/master/manifest.json'));
     $result = $manager->update($app->getApplicationVersion(), true, true);
     if ($result) {
         $this->message('Update successful!');
     } else {
         $this->message('Already up-to-date.');
     }
 }