Skip to content

Tool for distributing files to local directories written in dart

License

Notifications You must be signed in to change notification settings

yuwash/localsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

localsync

Tool for distributing files to local directories written in dart. Copies files from the inbox into all given target directories, and then moves the inbox contents to its local target.

Usage

localsync <target_folder1> <target_folder2> ...

Options

Option Abbr. Description
--init -i Initialize a target directory.
--add -a Add a package to a target directory.
--add-all -A Add all packages from all targets to each target.
--clean -C Removes any empty package directory inside an inbox.
--help -h Display help information.
--install-inbox -I Install the inbox directory and package directories.
--sync -s Synchronize the target directories (copy and delete files, resolves conflicts).

Limitations

Requires manual resolution of conflicting files. It will abort when a conflict is found in any given target.

Configuration

localsync.json

Each target directory contains a localsync.json file that specifies the configuration for the local sync tool. The file is a JSON document with the following structure:

{
  "version": 1,
  "packages": [
    "package1",
    "package2"
  ]
}
  • version: Version of the file syntax.
  • packages: Names of a packages to be synchronized which correspond to subdirectories within the targets and the inboxes.

localsync-inbox

Each target directory also contains a localsync-inbox directory. This directory serves as the source for files that will be copied to other target directories. Before synchronization, the localsync tool copies the contents of the inbox directory to all other target directories. After the copy, the contents of the inbox are moved to the target directory itself.

About

Tool for distributing files to local directories written in dart

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages