src/Neutrino/Foundation/Cli/Tasks/ListTask.php
public function mainAction()
    {
        $this->displayHeader();

        $routes = $this->router->getRoutes();

        $delimiter = Route::getDelimiter();
        foreach ($routes as $route) {
            /** @var Route $route */
            // Default route
            $pattern = $route->getPattern();
            if ($pattern === "#^(?:$delimiter)?([a-zA-Z0-9\\_\\-]+)[$delimiter]{0,1}$#" ||
                $pattern === "#^(?:$delimiter)?([a-zA-Z0-9\\_\\-]+)$delimiter([a-zA-Z0-9\\.\\_]+)($delimiter.*)*$#"
            ) {
                continue;
            }

            $this->describeRoute($route);
        }

        $datas = [];

        foreach ($this->describes as $describe) {
            if (isset($describe['__exception'])) {
                $datas[$describe['cmd']] = Decorate::error(explode(PHP_EOL, $describe['__exception'], 2)[0]);
            } else {
                $datas[$describe['cmd']] = explode(PHP_EOL, $describe['description'], 2)[0];
            }
        }

        $this->notice('Available Commands :');

        (new Group($this->output, $datas, Group::SORT_ASC))->display();
    }
public function mainAction()
    {
        $this->displayHeader();

        $routes = $this->router->getRoutes();

        $delimiter = Route::getDelimiter();
        foreach ($routes as $route) {
            /** @var Route $route */
            // Default route
            $pattern = $route->getPattern();
            if ($pattern === "#^(?:$delimiter)?([a-zA-Z0-9\\_\\-]+)[$delimiter]{0,1}$#" ||
                $pattern === "#^(?:$delimiter)?([a-zA-Z0-9\\_\\-]+)$delimiter([a-zA-Z0-9\\.\\_]+)($delimiter.*)*$#"
            ) {
                continue;
            }

            $this->describeRoute($route);
        }

        $datas = [];

        foreach ($this->describes as $describe) {
            if (isset($describe['__exception'])) {
                $datas[$describe['cmd']] = Decorate::error(explode(PHP_EOL, $describe['__exception'], 2)[0]);
            } else {
                $datas[$describe['cmd']] = explode(PHP_EOL, $describe['description'], 2)[0];
            }
        }

        $this->notice('Available Commands :');

        (new Group($this->output, $datas, Group::SORT_ASC))->display();
    }
List all commands available.

@description List all commands available.