Request an invite
Docs menu

osmates workspace push

Copy a folder of the Mac into a running machine as its workspace.

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

The machine's name or identifier.

<folder>Required

The folder on the Mac.

--to <to>

Where it goes in the guest.

--replace

Forget the machine's workspace first.

--json

Print machine-readable JSON.

JSON output

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

JSON Schema: /schemas/0/cli/workspace/push.json

bytesintegerRequired

At least 0.

commitstring
filesintegerRequired
folderstringRequired
guestPathstringRequired
historyLeftOutstring
hooksPathstring
idstring (uuid)Required
isGitWorkTreebooleanRequired
lastDiffobject
lastDiff.changesintegerRequired
lastDiff.patchPathstringRequired
lastDiff.returnPathsintegerRequired
lastDiff.takenAtstring (date-time)Required
leftOutarray of objectsRequired
leftOut[].pathstringRequired
leftOut[].reasonstringRequired
objectFormatstringRequired

One of sha1, sha256.

outstandingstring
pushedAtstring (date-time)Required
snapshotsBeforearray of strings (uuid)Required

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.

Report a problem with this page