osmates workspace diff
Take what the guest changed in the machine's workspace as a git patch and a report.
osmates workspace diff <machine> [--output <output>] [--json]The patch applies with git apply to the folder as it was pushed; the report beside it, a .json of the same name, lists every change, the files that can run something on the Mac once applied (hooks, agent settings, CI, build scripts and toolchains, editor tasks), links, executables, what was left out and why, and names that are one file on the Mac's volumes. Diffs are against the push, so a later one holds an earlier one's changes too. OSMates applies nothing. A machine kept with its workspace after its stop starts without a window for it, and an ephemeral one is deleted after.
Arguments
<machine>RequiredThe machine's name or identifier.
--output <output>Where the patch goes. Default: <machine>-<time>.patch in the current folder.
--jsonPrint machine-readable JSON.
JSON output
With --json, it prints an object with these fields.
JSON Schema: /schemas/0/cli/workspace/diff.json
patchBytesintegerRequiredAt least 0.
patchPathstringRequiredreportobjectRequiredreport.addedintegerRequiredreport.collisionsarray of objectsRequiredreport.deletedintegerRequiredreport.executablesarray of stringsRequiredreport.filesarray of objectsRequiredreport.leftOutarray of objectsRequiredreport.linksarray of objectsRequiredreport.modifiedintegerRequiredreport.returnPathsarray of objectsRequiredreport.scannedintegerRequiredreportPathstringRequired
Fields nested deeper are in the schema.
Exit statuses
Its exit status is one of these.
| Status | Meaning |
|---|---|
| 0 | The command did what it was asked. |
| 1 | The command failed; with --json, standard error's last line is the error object. |
| 64 | The command line is wrong, as ArgumentParser found before the command ran. |
| 65 | What was given is wrong, found while the command ran; the same command fails until it changes. |
| 75 | The same command can work later with nothing changed, as while an update finishes. |
| 130 | Control-C cancelled what the command started. |