public function run($args)
    {
        $args = $this->parseArgs($args);

        if (!isset($args[0]) || !$args[0]) {
            return $this->updateEverything();
        }

        $projectName = $args[0];
        if (!$this->existsProjectName($projectName)) {
            return $this->error('&required-project');
        }

        echo $this->info("Update project '{$projectName}'");

        return $this->exec('update', 'update-project', [$projectName]);
    }
public function run($args)
    {
        $args = $this->parseArgs($args);

        if (!isset($args[0]) || !$args[0]) {
            return $this->updateEverything();
        }

        $projectName = $args[0];
        if (!$this->existsProjectName($projectName)) {
            return $this->error('&required-project');
        }

        echo $this->info("Update project '{$projectName}'");

        return $this->exec('update', 'update-project', [$projectName]);
    }
public function run ( $ args ) { $ args = $ this -> parseArgs ( $ args ) ; if ( ! isset ( $ args [ 0 ] ) || ! $ args [ 0 ] ) { return $ this -> updateEverything ( ) ; } $ projectName = $ args [ 0 ] ; if ( ! $ this -> existsProjectName ( $ projectName ) ) { return $ this -> error ( '&required-project' ) ; } echo $ this -> info ( "Update project '{$projectName}'" ) ; return $ this -> exec ( 'update' , 'update-project' , [ $ projectName ] ) ; }
Run update command.

@param array $args

@return string
Run update command .