@@ -36,11 +36,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
3636 $ this ->config_file = $ this ->config_path . '/config.json ' ;
3737
3838 $ this ->config = [
39- 'vendor ' => null ,
40- 'vendor_namespace ' => null ,
4139 'author_name ' => null ,
4240 'author_username ' => null ,
4341 'author_email ' => null ,
42+ 'vendor ' => null ,
43+ 'namespace_vendor ' => null ,
4444 ];
4545
4646 if (!$ filesystem ->exists ($ this ->config_path )) {
@@ -73,7 +73,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
7373 case 'author_username ' :
7474 $ question = new Question ("What is your username? [alexbowers] " , "Alex Bowers " );
7575 break ;
76- case 'vendor_namespace ' :
76+ case 'namespace_vendor ' :
7777 $ question = new Question ("What is your vendor namespace? [alexbowers] " , "alexbowers " );
7878 $ question ->setNormalizer (function ($ value ) {
7979 return str_replace (' ' , '' , $ value );
@@ -95,7 +95,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
9595
9696 $ this ->package = [
9797 'package_name ' => null ,
98- 'package_namespace ' => null ,
98+ 'package_description ' => null ,
99+ 'namespace_tool_name ' => null ,
99100 ];
100101
101102 foreach ($ this ->package as $ package_option => $ package_value ) {
@@ -109,7 +110,14 @@ protected function execute(InputInterface $input, OutputInterface $output)
109110 return strtolower ($ value );
110111 });
111112 break ;
112- case 'package_namespace ' :
113+ case 'package_description ' :
114+ $ question = new Question ("What is your package description? [My package description] " , "My package description " );
115+ $ question ->setNormalizer (function ($ value ) {
116+ $ value = str_replace (' ' , '- ' , $ value );
117+ return strtolower ($ value );
118+ });
119+ break ;
120+ case 'namespace_tool_name ' :
113121 $ question = new Question ("What is your package namespace? [MyNovaPackage] " , "MyNovaPackage " );
114122 $ question ->setNormalizer (function ($ value ) {
115123 return str_replace (' ' , '' , $ value );
0 commit comments