|
@@ 58-60 (lines=3) @@
|
| 55 |
|
return WP_CLI::error( __( 'Specify subcommand. "activate" and "list" subcommands are supported', 'jetpack' ) ); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
if ( 'activate' !== $args[0] && 'list' !== $args[0] ) { |
| 59 |
|
return WP_CLI::error( __( 'Only "activate" and "list" subcommands are supported', 'jetpack' ) ); |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
if ( 'activate' === $args[0] && empty( $args[1] ) ) { |
| 63 |
|
return WP_CLI::error( __( 'Specify branch name. Try `wp jetpack-beta branch list` for list of available branches', 'jetpack' ) ); |
|
@@ 62-64 (lines=3) @@
|
| 59 |
|
return WP_CLI::error( __( 'Only "activate" and "list" subcommands are supported', 'jetpack' ) ); |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
if ( 'activate' === $args[0] && empty( $args[1] ) ) { |
| 63 |
|
return WP_CLI::error( __( 'Specify branch name. Try `wp jetpack-beta branch list` for list of available branches', 'jetpack' ) ); |
| 64 |
|
} |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
private function install_jetpack( $branch, $section ) { |