Skip to content

Commit

Permalink
Merge pull request #10 from BeAPI/feature/plugin-description
Browse files Browse the repository at this point in the history
add plugin description replacement
  • Loading branch information
Rahe authored Mar 16, 2021
2 parents 5ecac3e + 63a10d0 commit 7bd552b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Command/ScaffoldPluginCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ protected function execute( InputInterface $input, OutputInterface $output ) {
$pluginRealName = $this->askAndConfirm( $io, "What is your plugin real name ? (e.g: 'My great plugin') " );
self::doStrReplace( $installPath, 'BEA Plugin Name', $pluginRealName );

// plugin description human name
$pluginDescription = $this->askAndConfirm( $io, "What is your plugin description ? (e.g: 'Manage CPT xxx') " );
self::doStrReplace( $installPath, 'Your plugin description', $pluginDescription );

// namespace
$pluginNamespace = $this->askAndConfirm( $io, "What is your plugin's namespace ? (e.g: 'My_company\\My_Plugin') " );
self::doStrReplace( $installPath, 'BEA\\PB', $pluginNamespace );
Expand Down

0 comments on commit 7bd552b

Please sign in to comment.