Request an invite
Docs menu

osmates trajectory export

Pack trajectory entries for training, with a manifest and checksums.

Usage
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>Repeatable

Trajectory entries, or folders of them such as a run's.

--to <folder>

The folder to write. Default: ./trajectories-export-<date>-<time>.

--outcome <outcome>Repeatable

Keep only entries with this outcome; repeat for more.

One of passed, failed, error, cancelled.

--json

Print machine-readable JSON.

JSON output

With --json, it prints an object with these fields.

JSON Schema: /schemas/0/cli/trajectory/export.json

bytesintegerRequired

At least 0.

checksumsstringRequired
entriesintegerRequired
filesintegerRequired
folderstringRequired
manifeststringRequired
skippedarray of objectsRequired
skipped[].pathstringRequired
skipped[].problemstringRequired

Exit statuses

Its exit status is one of these.

StatusMeaning
0The command did what it was asked.
1The command failed; with --json, standard error's last line is the error object.
64The command line is wrong, as ArgumentParser found before the command ran.
65What was given is wrong, found while the command ran; the same command fails until it changes.
75The same command can work later with nothing changed, as while an update finishes.
130Control-C cancelled what the command started.
1The command printed its result, whose check failed.

Report a problem with this page