GithubHelp home page GithubHelp logo

mint-noon / wost Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 330 KB

CLI tool to sync your work files between machines and always have up-to-date content.

License: GNU General Public License v3.0

JavaScript 1.03% TypeScript 98.79% Batchfile 0.19%

wost's Introduction

Usage

Install

$ npm i -g @mint-noon/wost

sync [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 session

Ignore file stored in $CONFIG_FILE.dst with 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 repository

unlink [target]

    $ wost unlink # Remove all files from shared dir
    $ wost unlink /path/to/dir # Remove target directory from shared directory

config [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 work

Default config

Config file stored in $HOME/.config/wost/config.json

{
    "src": "$HOME/Projects",
    "dst": "$HOME/WorkStream",
    "branch": "$HOSTNAME",
    "exclude": [
        ".git",
        ".gitignore",
        "node_modules",
        ".wsignore",
    ]
}

wost's People

Contributors

mint-noon avatar yuyaryshev avatar

Watchers

 avatar

Forkers

yuyaryshev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.