feat: add dx print command, drive hotpatching engine directly. (#4602)

* feat: add dx print command

* small tweak to how client_target is handled

* hotpatching engine wired up!

* small cleanups

* lighter diff

* little bit more light cleanups

* remove changes to manganis

* fix wrong dir error

* move session_cache fixing to prebuild step
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-08-21 20:29:49 -07:00
1 parent d899afaf4a
commit 083e04bb6c
19 files changed
+633 -234

No files matched your search

+10 -1
View File
@@ -184,6 +184,10 @@ impl TraceController {
return Ok(());
}
if field.name() == "telemetry" {
return Ok(());
}
write!(writer, "{}", format_field(field.name(), value))
})
.delimited(" "),
@@ -794,7 +798,7 @@ impl TraceController {
/// The second return is a JSON object with the anonymized arguments as a structured value.
pub(crate) fn command_anonymized(arg: &crate::Commands) -> (String, serde_json::Value) {
use crate::cli::config::{Config, Setting};
use crate::BuildTools;
use crate::{print::Print, BuildTools};
use cargo_generate::Vcs;
match arg {
@@ -892,6 +896,11 @@ impl TraceController {
),
Commands::Tools(tool) => match tool {
BuildTools::BuildAssets(_build_assets) => ("tools assets".to_string(), json!({})),
BuildTools::HotpatchTip(_hotpatch_tip) => ("tools hotpatch".to_string(), json!({})),
},
Commands::Print(print) => match print {
Print::ClientArgs(_args) => ("print client-args".to_string(), json!({})),
Print::ServerArgs(_args) => ("print server-args".to_string(), json!({})),
},
}
}