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

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

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

        $projectName = $args[0];
        $version = $this->getNextVersion($this->getProjectDir($projectName));
        $this->info("Publish project '{$projectName}' (git login)");

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

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

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

        $projectName = $args[0];
        $version = $this->getNextVersion($this->getProjectDir($projectName));
        $this->info("Publish project '{$projectName}' (git login)");

        return $this->exec('publish', 'publish-project', [$projectName, $version]);
    }
public function run ( $ args ) { $ args = $ this -> parseArgs ( $ args ) ; if ( ! isset ( $ args [ 0 ] ) || ! $ args [ 0 ] ) { return $ this -> publishEverything ( ) ; } if ( ! $ this -> existsProjectName ( $ args [ 0 ] ) ) { return $ this -> error ( '&project-not-found' , [ 'project' => $ args [ 0 ] ] ) ; } $ projectName = $ args [ 0 ] ; $ version = $ this -> getNextVersion ( $ this -> getProjectDir ( $ projectName ) ) ; $ this -> info ( "Publish project '{$projectName}' (git login)" ) ; return $ this -> exec ( 'publish' , 'publish-project' , [ $ projectName , $ version ] ) ; }
Run publish command.

@param $args

@return string
Run publish command .