Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaEstes committed Aug 1, 2024
1 parent 3a6650b commit 17bc970
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 21 deletions.
3 changes: 1 addition & 2 deletions src/SonsOfPHP/Bard/src/Console/Command/CopyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
*/
final class CopyCommand extends AbstractCommand
{
protected static $defaultName = 'copy';

protected function configure(): void
{
$this
->setName('copy')
->setDescription('Copies a file to each package')
->addOption('dry-run', null, InputOption::VALUE_NONE, 'Dry Run (Do not make any changes)')
->addArgument('source', InputArgument::REQUIRED, 'Source file to copy')
Expand Down
3 changes: 1 addition & 2 deletions src/SonsOfPHP/Bard/src/Console/Command/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@
*/
final class InitCommand extends AbstractCommand
{
protected static $defaultName = 'init';

protected function configure(): void
{
$this
->setName('init')
->setDescription('Creates the initial bard.json file')
;
}
Expand Down
8 changes: 1 addition & 7 deletions src/SonsOfPHP/Bard/src/Console/Command/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,10 @@
*/
final class InstallCommand extends AbstractCommand
{
protected static $defaultName = 'install';

// public function __construct()
// {
// parent::__construct();
// }

protected function configure(): void
{
$this
->setName('install')
->setDescription('Runs composer install for all packages')
;
}
Expand Down
2 changes: 1 addition & 1 deletion src/SonsOfPHP/Bard/src/Console/Command/MergeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
*/
final class MergeCommand extends AbstractCommand
{
protected static $defaultName = 'merge';
private readonly Json $json;
private array $bardConfig;
private string $mainComposerFile;
Expand All @@ -47,6 +46,7 @@ public function __construct()
protected function configure(): void
{
$this
->setName('merge')
->setDescription('Merges package composer.json files into main composer.json file')
->addOption('dry-run', null, InputOption::VALUE_NONE, 'Dry Run (Do not make any changes)')
->addArgument('package', InputArgument::OPTIONAL, 'Which package?')
Expand Down
3 changes: 1 addition & 2 deletions src/SonsOfPHP/Bard/src/Console/Command/PullCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@
*/
final class PullCommand extends AbstractCommand
{
protected static $defaultName = 'pull';

protected function configure(): void
{
$this
->setName('pull')
->setDescription('Pull changes from package repos')
->addOption('branch', null, InputOption::VALUE_REQUIRED, 'What branch we working with?', 'main')
;
Expand Down
3 changes: 1 addition & 2 deletions src/SonsOfPHP/Bard/src/Console/Command/PushCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
*/
final class PushCommand extends AbstractCommand
{
protected static $defaultName = 'push';

protected function configure(): void
{
$this
->setName('push')
->setDescription('Push changes to package repos using git subtree push')
->addOption('branch', null, InputOption::VALUE_REQUIRED, 'What branch we working with?', 'main')
->addOption('dry-run', null, InputOption::VALUE_NONE, 'Dry Run (Do not make any changes)')
Expand Down
2 changes: 1 addition & 1 deletion src/SonsOfPHP/Bard/src/Console/Command/ReleaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
*/
final class ReleaseCommand extends AbstractCommand
{
protected static $defaultName = 'release';
private JsonFile $bardConfig;
private VersionInterface|Version|null $releaseVersion = null;
private bool $isDryRun = true;

protected function configure(): void
{
$this
->setName('release')
->setDescription('Create a new release')
->addOption('dry-run', null, InputOption::VALUE_NONE, 'Execute a dry-run with nothing being updated or released')
->addOption('branch', null, InputOption::VALUE_REQUIRED, 'What branch we working with?', 'main')
Expand Down
3 changes: 1 addition & 2 deletions src/SonsOfPHP/Bard/src/Console/Command/SplitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
*/
final class SplitCommand extends AbstractCommand
{
protected static $defaultName = 'split';

protected function configure(): void
{
$this
->setName('split')
->setDescription('Push changes to package repos using git subtree split')
->addOption('branch', null, InputOption::VALUE_REQUIRED, 'What branch we working with?', 'main')
->addOption('dry-run', null, InputOption::VALUE_NONE, 'Dry Run (Do not make any changes)')
Expand Down
3 changes: 1 addition & 2 deletions src/SonsOfPHP/Bard/src/Console/Command/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
*/
final class UpdateCommand extends AbstractCommand
{
protected static $defaultName = 'update';

protected function configure(): void
{
$this
->setName('update')
->setDescription('Runs composer update for all packages')
;
}
Expand Down

0 comments on commit 17bc970

Please sign in to comment.