/**
* Generate empty child theme (twentytwelve by default).
*
+ * @subcommand child-theme
+ *
* @synopsis <slug> [--theme_name=<title>] [--parent_theme=<title>] [--author=<full-name>] [--author_uri=<http-url>] [--theme_uri=<http-url>] [--activate]
*/
function child_theme( $args, $assoc_args ) {
$data['theme_description'] = ucfirst($data['parent_theme']) . " child theme. ";
-
+
$theme_dir = $theme_path . "/$theme_slug";
$theme_style_path = "$theme_dir/style.css";
$this->create_file( $theme_style_path, $this->render( 'child_theme.mustache', $data ) );
WP_CLI::success( "Created $theme_dir" );
-
+
if ( isset( $assoc_args['activate'] ) )
WP_CLI::run_command( array( 'theme', 'activate', $theme_slug ) );