system/Commands/Utilities/Routes.php
public function run(array $params)
	{
		$collection = Services::routes(true);
		$methods    = [
			'get',
			'head',
			'post',
			'put',
			'delete',
			'options',
			'trace',
			'connect',
			'cli',
		];

		$tbody = [];
		foreach ($methods as $method)
		{
			$routes = $collection->getRoutes($method);

			foreach ($routes as $from => $to)
			{
				// filter for strings, as callbacks aren't displayable
				if (is_string($to))
				{
					$tbody[] = [
						$from,
						$method,
						$to,
					];
				}
			}
		}

		$thead = [
			'Route',
			'Method',
			'Command',
		];

		CLI::table($tbody, $thead);
	}
public function run(array $params)
	{
		$collection = Services::routes(true);
		$methods    = [
			'get',
			'head',
			'post',
			'put',
			'delete',
			'options',
			'trace',
			'connect',
			'cli',
		];

		$tbody = [];
		foreach ($methods as $method)
		{
			$routes = $collection->getRoutes($method);

			foreach ($routes as $from => $to)
			{
				// filter for strings, as callbacks aren't displayable
				if (is_string($to))
				{
					$tbody[] = [
						$from,
						$method,
						$to,
					];
				}
			}
		}

		$thead = [
			'Route',
			'Method',
			'Command',
		];

		CLI::table($tbody, $thead);
	}
Displays the help for the spark cli script itself.

@param array $params