OSDN Git Service

rename `scaffold child_theme` to `scaffold child-theme`
authorscribu <mail@scribu.net>
Fri, 19 Apr 2013 21:10:28 +0000 (00:10 +0300)
committerscribu <mail@scribu.net>
Fri, 19 Apr 2013 21:10:29 +0000 (00:10 +0300)
php/commands/scaffold.php

index b637201..4b76b6c 100644 (file)
@@ -149,6 +149,8 @@ class Scaffold_Command extends WP_CLI_Command {
        /**
         * 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 ) {
@@ -166,14 +168,14 @@ class Scaffold_Command extends WP_CLI_Command {
 
                $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 ) );