osmates workspace push
Copy a folder of the Mac into a running machine as its workspace.
osmates workspace push <machine> <folder> [--to <to>] [--replace] [--json]A git work tree's top goes in with its tracked files and the untracked ones no rule ignores, with its submodules, and a .git of its objects, refs, index, hooks and a configuration OSMates writes, without credentials or the Mac's settings. Any other folder goes in whole. The Mac's git runs with no fsmonitor and reads only. A folder that is, holds or is inside a share a machine can write is refused, as are the folders OSMates keeps. The guest path is the account's home and the folder's name unless --to names another, which must not exist or be an empty folder. A machine has one workspace; --replace forgets the one it had, whose copy stays in the guest.
Arguments
<machine>RequiredThe machine's name or identifier.
<folder>RequiredThe folder on the Mac.
--to <to>Where it goes in the guest.
--replaceForget the machine's workspace first.
--jsonPrint machine-readable JSON.
JSON output
With --json, it prints an object with these fields.
JSON Schema: /schemas/0/cli/workspace/push.json
bytesintegerRequiredAt least 0.
commitstringfilesintegerRequiredfolderstringRequiredguestPathstringRequiredhistoryLeftOutstringhooksPathstringidstring (uuid)RequiredisGitWorkTreebooleanRequiredlastDiffobjectlastDiff.changesintegerRequiredlastDiff.patchPathstringRequiredlastDiff.returnPathsintegerRequiredlastDiff.takenAtstring (date-time)RequiredleftOutarray of objectsRequiredleftOut[].pathstringRequiredleftOut[].reasonstringRequiredobjectFormatstringRequiredOne of
sha1,sha256.outstandingstringpushedAtstring (date-time)RequiredsnapshotsBeforearray of strings (uuid)Required
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. |