osmates trajectory export
Pack trajectory entries for training, with a manifest and checksums.
osmates trajectory export [<options>] [<folders> ...]Takes entries' folders or folders of entries, such as a run's, and copies each entry's files into a new or empty folder, checking each against the SHA-256 its entry.json gives. The folder gets manifest.json, with every entry's task, outcome and size, and SHA256SUMS, which shasum -a 256 -c SHA256SUMS checks. An entry that does not match is left out, and the command exits 1 after writing the rest. Needs OSMates Pro.
Arguments
<folders>RepeatableTrajectory entries, or folders of them such as a run's.
--to <folder>The folder to write. Default: ./trajectories-export-<date>-<time>.
--outcome <outcome>RepeatableKeep only entries with this outcome; repeat for more.
One of
passed,failed,error,cancelled.--jsonPrint machine-readable JSON.
JSON output
With --json, it prints an object with these fields.
JSON Schema: /schemas/0/cli/trajectory/export.json
bytesintegerRequiredAt least 0.
checksumsstringRequiredentriesintegerRequiredfilesintegerRequiredfolderstringRequiredmanifeststringRequiredskippedarray of objectsRequiredskipped[].pathstringRequiredskipped[].problemstringRequired
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. |
| 1 | The command printed its result, whose check failed. |