$ npm i -g @mint-noon/wost
$ wost sync # Sync shared dir with origin and write changes to work files
$ wost sync -w -d 20 # Repeat sync each 20 seconds
Options:
-w, --watch - Watch changes and sync state after delay
-d, --delay <seconds> - Default value is 120. Set sync delay for current session
Ignore file stored in
$CONFIG_FILE.dst
with name.wsignore
$ wost link # Link all files (exclude ignored) from source dir to shared dir
$ wost link /path/ # Link target dir to shared repository
$ wost unlink # Remove all files from shared dir
$ wost unlink /path/to/dir # Remove target directory from shared directory
$ wost config # Print you config file in terminal
Options:
-s, --src <target> - Set source directory (where stored all you projects)
-d, --dst <target> - Set shared directory (must be git repository)
-b, --branch <name> - Set name of the branch with which the user will work
Config file stored in
$HOME/.config/wost/config.json
{
"src": "$HOME/Projects",
"dst": "$HOME/WorkStream",
"branch": "$HOSTNAME",
"exclude": [
".git",
".gitignore",
"node_modules",
".wsignore",
]
}