Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Create_Repository extends Command {
/**
* {@inheritdoc}
*/
protected static $defaultName = 'create-repository'; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase
protected static $defaultName = 'github:create-repository'; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase

/**
* The new repository's slug.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Symfony\Component\Console\Output\OutputInterface;

class Delete_Branch_Protection_Rules extends Command {
protected static $defaultName = 'delete-branch-protection-rules';
protected static $defaultName = 'github:delete-trunk-protection-rules';

protected function configure() {
$this
Expand All @@ -24,7 +24,7 @@ protected function execute( InputInterface $input, OutputInterface $output ) {
$slug = $input->getArgument( 'repo-slug' );

$output->writeln( "<comment>Adding branch protection rules to $slug.</comment>" );
$delete_branch_protection_rules = $api_helper->call_github_api( "repos/" . GITHUB_API_OWNER . "/$slug/branches/master/protection", array(), 'DELETE' );
$delete_branch_protection_rules = $api_helper->call_github_api( "repos/" . GITHUB_API_OWNER . "/$slug/branches/trunk/protection", array(), 'DELETE' );

if ( ! empty( '' === $delete_branch_protection_rules ) ) {
$output->writeln( "<info>Done. Deleted branch protection rules for $slug.</info>" );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Symfony\Component\Console\Output\OutputInterface;

class Add_Branch_Protection_Rules extends Command {
protected static $defaultName = 'add-branch-protection-rules';
protected static $defaultName = 'github:set-repo-trunk-protection-rules';

protected function configure() {
$this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Symfony\Component\Console\Output\OutputInterface;

class Jetpack_Enable_SSO extends Command {
protected static $defaultName = 'jetpack-enable-sso';
protected static $defaultName = 'jetpack:enable-sso-module';

protected function configure() {
$this
Expand Down
2 changes: 1 addition & 1 deletion src/commands/jetpack-module-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Symfony\Component\Console\Helper\Table;

class Jetpack_Modules extends Command {
protected static $defaultName = 'jetpack-module-list';
protected static $defaultName = 'jetpack:list-modules';

protected function configure() {
$this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


class Jetpack_Sites_With extends Command {
protected static $defaultName = 'jetpack-sites-with';
protected static $defaultName = 'jetpack:search-modules';

/**
* @var Api_Helper|null API Helper instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Symfony\Component\Console\Output\OutputInterface;

class Jetpack_Module extends Command {
protected static $defaultName = 'jetpack-module';
protected static $defaultName = 'jetpack:toggle-module';

private array $settings = array(
'enable' => true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use function Team51\Helper\run_pressable_site_wp_cli_command;

class Create_Development_Site extends Command {
protected static $defaultName = 'create-development-site';
protected static $defaultName = 'pressable:clone-site';

protected function configure() {
$this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use function Team51\Helper\run_app_command;

class Create_Production_Site extends Command {
protected static $defaultName = 'create-production-site';
protected static $defaultName = 'pressable:create-site';

const DEPLOYHQ_ZONE_EUROPE = 3; // UK
const DEPLOYHQ_ZONE_US_EAST = 6;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Symfony\Component\Console\Helper\Table;

class Plugin_List extends Command {
protected static $defaultName = 'plugin-list';
protected static $defaultName = 'wp:plugin-list';

protected function configure() {
$this
Expand Down