0.3.8 • Published 4 years ago
@mint-noon/wost v0.3.8
Usage
Install
$ npm i -g @mint-noon/wostsync [OPTIONS]
  $ 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 sessionIgnore file stored in
$CONFIG_FILE.dstwith name.wsignore
link [target]
    $ wost link # Link all files (exclude ignored) from source dir to shared dir
    $ wost link /path/ # Link target dir to shared repositoryunlink [target]
    $ wost unlink # Remove all files from shared dir
    $ wost unlink /path/to/dir # Remove target directory from shared directoryconfig [OPTIONS]
  $ 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 workDefault config
Config file stored in
$HOME/.config/wost/config.json
{
    "src": "$HOME/Projects",
    "dst": "$HOME/WorkStream",
    "branch": "$HOSTNAME",
    "exclude": [
        ".git",
        ".gitignore",
        "node_modules",
        ".wsignore",
    ]
}