Skip to content

Commit

Permalink
Merge pull request #6116 from ampproject/fix/6089-mark-optimizer-cli-…
Browse files Browse the repository at this point in the history
…as-experimental

Mark optimizer CLI commands as experimental in their docblock
  • Loading branch information
westonruter committed Apr 25, 2021
2 parents d00dc44 + e377477 commit 8d1425e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
12 changes: 10 additions & 2 deletions src/Cli/OptimizerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
use WP_CLI;

/**
* Commands that deal with the AMP optimizer.
* Commands that deal with the AMP optimizer. (EXPERIMENTAL)
*
* Note: The Optimizer CLI commands are to be considered experimental, as
* the output they produce is currently not guaranteed to be consistent
* with the corresponding output from the web server code path.
*
* @since 2.1.0
* @internal
Expand Down Expand Up @@ -50,7 +54,11 @@ public function __construct( OptimizerService $optimizer_service ) {
}

/**
* Run a file through the AMP Optimizer.
* Run a file through the AMP Optimizer. (EXPERIMENTAL)
*
* Note: The Optimizer CLI commands are to be considered experimental, as
* the output they produce is currently not guaranteed to be consistent
* with the corresponding output from the web server code path.
*
* ## OPTIONS
*
Expand Down
18 changes: 15 additions & 3 deletions src/Cli/TransformerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
use WP_CLI\Utils;

/**
* Commands that deal with the transformers registered with the AMP optimizer.
* Commands that deal with the transformers registered with the AMP optimizer. (EXPERIMENTAL)
*
* Note: The Optimizer CLI commands are to be considered experimental, as
* the output they produce is currently not guaranteed to be consistent
* with the corresponding output from the web server code path.
*
* @since 2.1.0
* @internal
Expand Down Expand Up @@ -48,7 +52,11 @@ public function __construct( Configuration $configuration ) {
}

/**
* List the transformers registered with the AMP Optimizer.
* List the transformers registered with the AMP Optimizer. (EXPERIMENTAL)
*
* Note: The Optimizer CLI commands are to be considered experimental, as
* the output they produce is currently not guaranteed to be consistent
* with the corresponding output from the web server code path.
*
* ## OPTIONS
*
Expand Down Expand Up @@ -135,7 +143,11 @@ function ( $transformer_class ) {
}

/**
* List the configuration of a given transformer.
* List the configuration of a given transformer. (EXPERIMENTAL)
*
* Note: The Optimizer CLI commands are to be considered experimental, as
* the output they produce is currently not guaranteed to be consistent
* with the corresponding output from the web server code path.
*
* ## OPTIONS
*
Expand Down

0 comments on commit 8d1425e

Please sign in to comment.