Rename SolveCraft to SolidCraft everywhere, with compatibility shims (#389)
* WIP deep rename (not for push) * WIP2 * WIP3 * WIP4 wxs fix * rustfmt * Rename the remaining identifiers in merged crash-report code Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RjGw4gA5ZvKrU8MQP6sBgT --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
27415e4dd7
commit
296683229d
464 files changed
+3408
-2956
No files matched your search
+8
-8
@@ -1,8 +1,8 @@
|
||||
//! `cargo xtask book`: generate the book's command reference and screenshots, then build it.
|
||||
//!
|
||||
//! The command reference (`docs/book/src/reference/commands.md`) comes from
|
||||
//! `solvecraft-cli commands`, so it can't drift from the registry. The screenshots in
|
||||
//! `docs/book/src/generated/` are CPU renders by `solvecraft-cli snapshot` of `examples/*.json`
|
||||
//! `solidcraft-cli commands`, so it can't drift from the registry. The screenshots in
|
||||
//! `docs/book/src/generated/` are CPU renders by `solidcraft-cli snapshot` of `examples/*.json`
|
||||
//! and `docs/book/scripts/*.json`, plus the app screenshot from `docs/screenshots/`. Both are
|
||||
//! gitignored and attributed in ATTRIBUTION.md. The book itself is built by `mdbook` (a separate
|
||||
//! tool, not a dependency) into `target/book`.
|
||||
@@ -23,9 +23,9 @@ pub fn run(root: &Path, build: bool) -> Result<(), String> {
|
||||
c.args(["build", "-q", "--release", "-p", "solidcraft-cli"]);
|
||||
crate::run(c, "cargo build -p solidcraft-cli")?;
|
||||
|
||||
let out = cli().arg("commands").output().map_err(|e| format!("solvecraft-cli: {e}"))?;
|
||||
let out = cli().arg("commands").output().map_err(|e| format!("solidcraft-cli: {e}"))?;
|
||||
if !out.status.success() {
|
||||
return Err(format!("solvecraft-cli commands failed:\n{}", String::from_utf8_lossy(&out.stderr)));
|
||||
return Err(format!("solidcraft-cli commands failed:\n{}", String::from_utf8_lossy(&out.stderr)));
|
||||
}
|
||||
let cmds: Value = serde_json::from_slice(&out.stdout).map_err(|e| format!("commands JSON: {e}"))?;
|
||||
let md = reference(cmds.as_array().map(Vec::as_slice).unwrap_or_default());
|
||||
@@ -40,7 +40,7 @@ pub fn run(root: &Path, build: bool) -> Result<(), String> {
|
||||
let png = gen_dir.join(format!("{stem}.png"));
|
||||
let mut c = cli();
|
||||
c.arg("snapshot").arg(s).arg("--out").arg(&png).args(["--width", SNAPSHOT_SIZE.0, "--height", SNAPSHOT_SIZE.1]);
|
||||
let o = c.output().map_err(|e| format!("solvecraft-cli snapshot: {e}"))?;
|
||||
let o = c.output().map_err(|e| format!("solidcraft-cli snapshot: {e}"))?;
|
||||
if !o.status.success() {
|
||||
return Err(format!("snapshot of {} failed:\n{}", s.display(), String::from_utf8_lossy(&o.stderr)));
|
||||
}
|
||||
@@ -58,7 +58,7 @@ pub fn run(root: &Path, build: bool) -> Result<(), String> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// The release solvecraft-cli just built.
|
||||
/// The release solidcraft-cli just built.
|
||||
fn cli() -> std::process::Command {
|
||||
let mut c = cargo();
|
||||
c.args(["run", "-q", "--release", "-p", "solidcraft-cli", "--"]);
|
||||
@@ -83,8 +83,8 @@ fn json_files(dir: &Path) -> Result<Vec<std::path::PathBuf>, String> {
|
||||
fn reference(cmds: &[Value]) -> String {
|
||||
let s = |c: &Value, k: &str| c[k].as_str().unwrap_or_default().to_string();
|
||||
let mut md = format!(
|
||||
"# Command reference\n\nGenerated by `cargo xtask book` from `solvecraft-cli commands` ({} commands). Every command runs the same \
|
||||
way from the toolbar, a script, `solvecraft-cli exec <id> '<json>'`, the control channel and MCP. Parameters marked `?` are \
|
||||
"# Command reference\n\nGenerated by `cargo xtask book` from `solidcraft-cli commands` ({} commands). Every command runs the same \
|
||||
way from the toolbar, a script, `solidcraft-cli exec <id> '<json>'`, the control channel and MCP. Parameters marked `?` are \
|
||||
optional; `expr` is a number or an expression with units.\n",
|
||||
cmds.len()
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user