Permalink
Browse files

[TECH] Rename the CLI Command Point namespace to Vertex

  • Loading branch information...
codisart committed Oct 15, 2015
1 parent 51603fb commit c6981217f56b647e5a8fa504ac28a1a1396eaa5c
View
@@ -41,7 +41,7 @@ use League\Geotools\CLI\Command\Convert;
use League\Geotools\CLI\Command\Distance;
use League\Geotools\CLI\Command\Geocoder;
use League\Geotools\CLI\Command\Geohash;
use League\Geotools\CLI\Command\Point;
use League\Geotools\CLI\Command\Vertex;
use League\Geotools\Geotools;
$geotools = new Geotools;
@@ -60,10 +60,10 @@ $console->add(new Geocoder\Geocode);
$console->add(new Geocoder\Reverse);
$console->add(new Geohash\Decode);
$console->add(new Geohash\Encode);
$console->add(new Point\Destination);
$console->add(new Point\FinalBearing);
$console->add(new Point\FinalCardinal);
$console->add(new Point\InitialBearing);
$console->add(new Point\InitialCardinal);
$console->add(new Point\Middle);
$console->add(new Vertex\Destination);
$console->add(new Vertex\FinalBearing);
$console->add(new Vertex\FinalCardinal);
$console->add(new Vertex\InitialBearing);
$console->add(new Vertex\InitialCardinal);
$console->add(new Vertex\Middle);
$console->run();
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
namespace League\Geotools\CLI\Command\Point;
namespace League\Geotools\CLI\Command\Vertex;
use League\Geotools\Coordinate\Coordinate;
use League\Geotools\Coordinate\Ellipsoid;
@@ -31,7 +31,7 @@ protected function configure()
$availableEllipsoids = Ellipsoid::getAvailableEllipsoidNames();
$this
->setName('point:destination')
->setName('vertex:destination')
->setDescription('Compute the destination coordinate with given bearing in degrees and a distance in meters')
->addArgument('origin', InputArgument::REQUIRED, 'The origin "Lat,Long" coordinate')
->addArgument('bearing', InputArgument::REQUIRED, 'The initial bearing in degrees')
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
namespace League\Geotools\CLI\Command\Point;
namespace League\Geotools\CLI\Command\Vertex;
use League\Geotools\Coordinate\Coordinate;
use League\Geotools\Coordinate\Ellipsoid;
@@ -20,7 +20,7 @@
use Symfony\Component\Console\Output\OutputInterface;
/**
* Command-line point:final-bearing class
* Command-line vertex:final-bearing class
*
* @author Antoine Corcy <contact@sbin.dk>
*/
@@ -31,7 +31,7 @@ protected function configure()
$availableEllipsoids = Ellipsoid::getAvailableEllipsoidNames();
$this
->setName('point:final-bearing')
->setName('vertex:final-bearing')
->setDescription('Compute the final bearing in degrees between 2 coordinates')
->addArgument('origin', InputArgument::REQUIRED, 'The origin "Lat,Long" coordinate')
->addArgument('destination', InputArgument::REQUIRED, 'The destination "Lat,Long" coordinate')
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
namespace League\Geotools\CLI\Command\Point;
namespace League\Geotools\CLI\Command\Vertex;
use League\Geotools\Coordinate\Coordinate;
use League\Geotools\Coordinate\Ellipsoid;
@@ -20,7 +20,7 @@
use Symfony\Component\Console\Output\OutputInterface;
/**
* Command-line point:final-cardinal class
* Command-line vertex:final-cardinal class
*
* @author Antoine Corcy <contact@sbin.dk>
*/
@@ -31,7 +31,7 @@ protected function configure()
$availableEllipsoids = Ellipsoid::getAvailableEllipsoidNames();
$this
->setName('point:final-cardinal')
->setName('vertex:final-cardinal')
->setDescription('Compute the final cardinal point (direction) between 2 coordinates')
->addArgument('origin', InputArgument::REQUIRED, 'The origin "Lat,Long" coordinate')
->addArgument('destination', InputArgument::REQUIRED, 'The destination "Lat,Long" coordinate')
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
namespace League\Geotools\CLI\Command\Point;
namespace League\Geotools\CLI\Command\Vertex;
use League\Geotools\Coordinate\Coordinate;
use League\Geotools\Coordinate\Ellipsoid;
@@ -20,7 +20,7 @@
use Symfony\Component\Console\Output\OutputInterface;
/**
* Command-line point:initial-bearing class
* Command-line vertex:initial-bearing class
*
* @author Antoine Corcy <contact@sbin.dk>
*/
@@ -31,7 +31,7 @@ protected function configure()
$availableEllipsoids = Ellipsoid::getAvailableEllipsoidNames();
$this
->setName('point:initial-bearing')
->setName('vertex:initial-bearing')
->setDescription('Compute the initial bearing in degrees between 2 coordinates')
->addArgument('origin', InputArgument::REQUIRED, 'The origin "Lat,Long" coordinate')
->addArgument('destination', InputArgument::REQUIRED, 'The destination "Lat,Long" coordinate')
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
namespace League\Geotools\CLI\Command\Point;
namespace League\Geotools\CLI\Command\Vertex;
use League\Geotools\Coordinate\Coordinate;
use League\Geotools\Coordinate\Ellipsoid;
@@ -20,7 +20,7 @@
use Symfony\Component\Console\Output\OutputInterface;
/**
* Command-line point:initial-cardinal class
* Command-line vertex:initial-cardinal class
*
* @author Antoine Corcy <contact@sbin.dk>
*/
@@ -31,7 +31,7 @@ protected function configure()
$availableEllipsoids = Ellipsoid::getAvailableEllipsoidNames();
$this
->setName('point:initial-cardinal')
->setName('vertex:initial-cardinal')
->setDescription('Compute the initial cardinal point (direction) between 2 coordinates')
->addArgument('origin', InputArgument::REQUIRED, 'The origin "Lat,Long" coordinate')
->addArgument('destination', InputArgument::REQUIRED, 'The destination "Lat,Long" coordinate')
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
namespace League\Geotools\CLI\Command\Point;
namespace League\Geotools\CLI\Command\Vertex;
use League\Geotools\Coordinate\Coordinate;
use League\Geotools\Coordinate\Ellipsoid;
@@ -20,7 +20,7 @@
use Symfony\Component\Console\Output\OutputInterface;
/**
* Command-line point:middle class
* Command-line vertex:middle class
*
* @author Antoine Corcy <contact@sbin.dk>
*/
@@ -31,7 +31,7 @@ protected function configure()
$availableEllipsoids = Ellipsoid::getAvailableEllipsoidNames();
$this
->setName('point:middle')
->setName('vertex:middle')
->setDescription('Compute the half-way coordinate between 2 coordinates')
->addArgument('origin', InputArgument::REQUIRED, 'The origin "Lat,Long" coordinate')
->addArgument('destination', InputArgument::REQUIRED, 'The destination "Lat,Long" coordinate')
@@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/
namespace League\Geotools\Tests\CLI\Command\Point;
namespace League\Geotools\Tests\CLI\Command\Vertex;
use League\Geotools\CLI\Application;
use League\Geotools\CLI\Command\Point\Destination;
use League\Geotools\CLI\Command\Vertex\Destination;
use Symfony\Component\Console\Tester\CommandTester;
/**
@@ -29,7 +29,7 @@ protected function setUp()
$this->application = new Application;
$this->application->add(new Destination);
$this->command = $this->application->find('point:destination');
$this->command = $this->application->find('vertex:destination');
$this->commandTester = new CommandTester($this->command);
}
@@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/
namespace League\Geotools\Tests\CLI\Command\Point;
namespace League\Geotools\Tests\CLI\Command\Vertex;
use League\Geotools\CLI\Application;
use League\Geotools\CLI\Command\Point\FinalBearing;
use League\Geotools\CLI\Command\Vertex\FinalBearing;
use Symfony\Component\Console\Tester\CommandTester;
/**
@@ -29,7 +29,7 @@ protected function setUp()
$this->application = new Application;
$this->application->add(new FinalBearing);
$this->command = $this->application->find('point:final-bearing');
$this->command = $this->application->find('vertex:final-bearing');
$this->commandTester = new CommandTester($this->command);
}
@@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/
namespace League\Geotools\Tests\CLI\Command\Point;
namespace League\Geotools\Tests\CLI\Command\Vertex;
use League\Geotools\CLI\Application;
use League\Geotools\CLI\Command\Point\FinalCardinal;
use League\Geotools\CLI\Command\Vertex\FinalCardinal;
use Symfony\Component\Console\Tester\CommandTester;
/**
@@ -29,7 +29,7 @@ protected function setUp()
$this->application = new Application;
$this->application->add(new FinalCardinal);
$this->command = $this->application->find('point:final-cardinal');
$this->command = $this->application->find('vertex:final-cardinal');
$this->commandTester = new CommandTester($this->command);
}
@@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/
namespace League\Geotools\Tests\CLI\Command\Point;
namespace League\Geotools\Tests\CLI\Command\Vertex;
use League\Geotools\CLI\Application;
use League\Geotools\CLI\Command\Point\InitialBearing;
use League\Geotools\CLI\Command\Vertex\InitialBearing;
use Symfony\Component\Console\Tester\CommandTester;
/**
@@ -29,7 +29,7 @@ protected function setUp()
$this->application = new Application;
$this->application->add(new InitialBearing);
$this->command = $this->application->find('point:initial-bearing');
$this->command = $this->application->find('vertex:initial-bearing');
$this->commandTester = new CommandTester($this->command);
}
@@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/
namespace League\Geotools\Tests\CLI\Command\Point;
namespace League\Geotools\Tests\CLI\Command\Vertex;
use League\Geotools\CLI\Application;
use League\Geotools\CLI\Command\Point\InitialCardinal;
use League\Geotools\CLI\Command\Vertex\InitialCardinal;
use Symfony\Component\Console\Tester\CommandTester;
/**
@@ -29,7 +29,7 @@ protected function setUp()
$this->application = new Application;
$this->application->add(new InitialCardinal);
$this->command = $this->application->find('point:initial-cardinal');
$this->command = $this->application->find('vertex:initial-cardinal');
$this->commandTester = new CommandTester($this->command);
}
@@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/
namespace League\Geotools\Tests\CLI\Command\Point;
namespace League\Geotools\Tests\CLI\Command\Vertex;
use League\Geotools\CLI\Application;
use League\Geotools\CLI\Command\Point\Middle;
use League\Geotools\CLI\Command\Vertex\Middle;
use Symfony\Component\Console\Tester\CommandTester;
/**
@@ -29,7 +29,7 @@ protected function setUp()
$this->application = new Application;
$this->application->add(new Middle);
$this->command = $this->application->find('point:middle');
$this->command = $this->application->find('vertex:middle');
$this->commandTester = new CommandTester($this->command);
}

0 comments on commit c698121

Please sign in to comment.