From 27ce1dc100d934382645c12092fe6882dd5607de Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 21 Apr 2023 11:51:27 +0100 Subject: [PATCH] chore: rename commands - Renamed `generate-build-file` to `init` as it's initialising a new project. - Renamed `run` to `generate` as it's generating the configuration files. --- bin/build-configs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/build-configs b/bin/build-configs index 6c85b6c..d59e758 100755 --- a/bin/build-configs +++ b/bin/build-configs @@ -24,9 +24,10 @@ use Twig\Loader\FilesystemLoader; $app = new Application(); $app->command( - 'generate-build-file [-p|--project-name=] [-t|--type=]', + 'init [-p|--project-name=] [-l|--language=] [-t|--type=]', function( string $projectName, + string $language, string $type, ): void { $projectName = str_replace('.', '-', $projectName); @@ -34,18 +35,20 @@ $app->command( // TODO: validate the project type. $output = <<descriptions('Generate a new build.yaml file.', [ +)->descriptions('Initialise a new build.yaml file.', [ '--project-name' => 'The name of the project.', + '--language' => 'The language used in the project.', '--type' => 'The project type.', ]);; $app->command( - 'run [-c|--config-file=] [-o|--output-dir=]', + 'generate [-c|--config-file=] [-o|--output-dir=]', function ( SymfonyStyle $io, string $configFile = 'build.yaml',