Skip to content

Commit

Permalink
Hide deprecated options (except on CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc45 committed Mar 8, 2024
1 parent 3dd40fd commit 320300a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file modified qit
Binary file not shown.
6 changes: 6 additions & 0 deletions src/src/Commands/DynamicCommandCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ protected function add_schema_to_command( DynamicCommand $command, array $schema
foreach ( $schema['properties'] as $property_name => $property_schema ) {
$ignore = [ 'client', 'event', 'woo_id', 'is_product_update', 'upload_id' ];

// Keep these on CI to avoid breaking workflows, but remove from Desktop.
if ( ! getenv( 'CI' ) ) {
$ignore[] = 'additional_woo_plugins';
$ignore[] = 'additional_wordpress_plugins';
}

if ( in_array( $property_name, $ignore, true ) ) {
continue;
}
Expand Down

0 comments on commit 320300a

Please sign in to comment.