Skip to content

Commit 2f11798

Browse files
committed
rename
1 parent 15635b5 commit 2f11798

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

  • crates
    • vite_task_plan/tests/plan_snapshots
    • vite_task/src/session

crates/vite_task/src/session/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ impl<'a> Session<'a> {
239239
let flags = run_command.flags;
240240
let additional_args = run_command.additional_args.clone();
241241

242-
match self.plan_from_cli(cwd, run_command).await {
242+
match self.plan_from_cli_run(cwd, run_command).await {
243243
Ok(ref graph) if graph.node_count() == 0 => {
244244
// No tasks matched the query — show task selector / "did you mean"
245245
self.handle_no_task(
@@ -401,7 +401,7 @@ impl<'a> Session<'a> {
401401
RunCommand { task_specifier: Some(task_specifier), flags, additional_args };
402402

403403
let cwd = Arc::clone(&self.cwd);
404-
let graph = self.plan_from_cli(cwd, run_command).await?;
404+
let graph = self.plan_from_cli_run(cwd, run_command).await?;
405405
let plan = ExecutionPlan::from_execution_graph(graph);
406406
let reporter = LabeledReporter::new(std::io::stdout(), self.workspace_path());
407407
Ok(self.execute(plan, Box::new(reporter)).await.err().unwrap_or(ExitStatus::SUCCESS))
@@ -480,7 +480,7 @@ impl<'a> Session<'a> {
480480
clippy::future_not_send,
481481
reason = "session is single-threaded, futures do not need to be Send"
482482
)]
483-
pub async fn plan_from_cli(
483+
pub async fn plan_from_cli_run(
484484
&mut self,
485485
cwd: Arc<AbsolutePath>,
486486
command: RunCommand,

crates/vite_task_plan/tests/plan_snapshots/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,9 @@ fn run_case_inner(
180180
panic!("only `run` commands supported in plan tests")
181181
};
182182

183-
let plan_result =
184-
session.plan_from_cli(workspace_root.path.join(plan.cwd).into(), run_command).await;
183+
let plan_result = session
184+
.plan_from_cli_run(workspace_root.path.join(plan.cwd).into(), run_command)
185+
.await;
185186

186187
let plan = match plan_result {
187188
Ok(graph) => ExecutionPlan::from_execution_graph(graph),

0 commit comments

Comments
 (0)