Skip to content

Commit cd2a582

Browse files
committed
chore(cli): mark analyze --watch as experimental
Signed-off-by: azjezz <[email protected]>
1 parent 3237e20 commit cd2a582

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/commands/analyze.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ use mago_prelude::Prelude;
5353

5454
use crate::commands::args::baseline_reporting::BaselineReportingArgs;
5555
use crate::config::Configuration;
56+
use crate::consts::ISSUE_URL;
5657
use crate::consts::PRELUDE_BYTES;
5758
use crate::error::Error;
5859
use crate::utils::create_orchestrator;
@@ -104,7 +105,7 @@ pub struct AnalyzeCommand {
104105
#[arg(long, default_value_t = false)]
105106
pub no_stubs: bool,
106107

107-
/// Enable watch mode for continuous analysis.
108+
/// Enable watch mode for continuous analysis (experimental).
108109
///
109110
/// When enabled, the analyzer watches the workspace for file changes and
110111
/// automatically re-runs analysis whenever PHP files are modified,
@@ -244,6 +245,9 @@ impl AnalyzeCommand {
244245
metadata: CodebaseMetadata,
245246
symbol_references: SymbolReferences,
246247
) -> Result<ExitCode, Error> {
248+
tracing::warn!("Watch mode is an experimental feature and may be unstable.");
249+
tracing::warn!("If you encounter issues, please report them at {}", ISSUE_URL);
250+
247251
tracing::info!("Starting watch mode. Press Ctrl+C to stop.");
248252

249253
let database = orchestrator.load_database(&configuration.source.workspace, true, Some(prelude_database))?;

0 commit comments

Comments
 (0)