Making WordPress.org

Changeset 2419


Ignore:
Timestamp:
01/29/2016 05:17:05 AM (11 years ago)
Author:
iandunn
Message:

WordCamp WP-CLI: Add a progress bar to wc-misc set-skip-feature-flag.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wp-cli-commands/miscellaneous.php

    r2418 r2419  
    4040                $dry_run     = isset( $assoc_args[ 'dry-run' ] );
    4141                $sites       = wp_get_sites( array( 'limit' => false ) );
     42                $notify      = new \cli\progress\Bar( 'Applying flag', count( $sites ) );
    4243                $results     = array();
    4344
     
    6768
    6869                        restore_current_blog();
     70                        $notify->tick();
    6971                }
    7072
     73                $notify->finish();
     74
     75                WP_CLI::line();
    7176                $table = new \cli\Table();
    7277                $table->setHeaders( array( 'Site', 'Action' ) );
Note: See TracChangeset for help on using the changeset viewer.