mirror of
https://github.com/rclone/rclone.git
synced 2026-01-07 02:54:04 +00:00
bisync: introduce terminal colors
This introduces a few basic color codings to make the terminal output more readable (and more fun). Rclone's standard --color flag is supported. (AUTO|NEVER|ALWAYS) Only a few lines have colors right now -- more will probably be added in future versions.
This commit is contained in:
@@ -1,43 +1,43 @@
|
||||
(01) : test rclone-args
|
||||
[36m(01) :[0m [34mtest rclone-args[0m
|
||||
|
||||
|
||||
(02) : test initial bisync
|
||||
(03) : bisync resync
|
||||
[36m(02) :[0m [34mtest initial bisync[0m
|
||||
[36m(03) :[0m [34mbisync resync[0m
|
||||
INFO : Synching Path1 "{path1/}" with Path2 "{path2/}"
|
||||
INFO : Copying unique Path2 files to Path1
|
||||
INFO : Resynching Path1 to Path2
|
||||
INFO : Resync updating listings
|
||||
INFO : Bisync successful
|
||||
INFO : [32mBisync successful[0m
|
||||
|
||||
(04) : test place newer files on both paths
|
||||
[36m(04) :[0m [34mtest place newer files on both paths[0m
|
||||
|
||||
|
||||
(05) : touch-glob 2001-01-02 {datadir/} *
|
||||
[36m(05) :[0m [34mtouch-glob 2001-01-02 {datadir/} *[0m
|
||||
|
||||
(06) : copy-file {datadir/}file1.txt {path1/}
|
||||
(07) : copy-file {datadir/}file2.txt {path2/}
|
||||
[36m(06) :[0m [34mcopy-file {datadir/}file1.txt {path1/}[0m
|
||||
[36m(07) :[0m [34mcopy-file {datadir/}file2.txt {path2/}[0m
|
||||
|
||||
(08) : copy-file {datadir/}file20.txt {path1/}subdir
|
||||
(09) : copy-file {datadir/}file21.txt {path2/}subdir
|
||||
[36m(08) :[0m [34mcopy-file {datadir/}file20.txt {path1/}subdir[0m
|
||||
[36m(09) :[0m [34mcopy-file {datadir/}file21.txt {path2/}subdir[0m
|
||||
|
||||
(10) : test run bisync with custom options
|
||||
(11) : bisync size-only
|
||||
[36m(10) :[0m [34mtest run bisync with custom options[0m
|
||||
[36m(11) :[0m [34mbisync size-only[0m
|
||||
INFO : Synching Path1 "{path1/}" with Path2 "{path2/}"
|
||||
INFO : Path1 checking for diffs
|
||||
INFO : - Path1 File is newer - file1.txt
|
||||
INFO : - Path1 File is newer - subdir/file20.txt
|
||||
INFO : - [34mPath1[0m [35mFile is newer[0m - [36mfile1.txt[0m
|
||||
INFO : - [34mPath1[0m [35mFile is newer[0m - [36msubdir/file20.txt[0m
|
||||
INFO : Path1: 2 changes: 0 new, 2 newer, 0 older, 0 deleted
|
||||
INFO : Path2 checking for diffs
|
||||
INFO : - Path2 File is newer - file2.txt
|
||||
INFO : - Path2 File is newer - subdir/file21.txt
|
||||
INFO : - [34mPath2[0m [35mFile is newer[0m - [36mfile2.txt[0m
|
||||
INFO : - [34mPath2[0m [35mFile is newer[0m - [36msubdir/file21.txt[0m
|
||||
INFO : Path2: 2 changes: 0 new, 2 newer, 0 older, 0 deleted
|
||||
INFO : Applying changes
|
||||
INFO : - Path1 Queue copy to Path2 - {path2/}file1.txt
|
||||
INFO : - Path1 Queue copy to Path2 - {path2/}subdir/file20.txt
|
||||
INFO : - Path2 Queue copy to Path1 - {path1/}file2.txt
|
||||
INFO : - Path2 Queue copy to Path1 - {path1/}subdir/file21.txt
|
||||
INFO : - Path2 Do queued copies to - Path1
|
||||
INFO : - Path1 Do queued copies to - Path2
|
||||
INFO : - [34mPath1[0m [35mQueue copy to Path2[0m - [36m{path2/}file1.txt[0m
|
||||
INFO : - [34mPath1[0m [35mQueue copy to Path2[0m - [36m{path2/}subdir/file20.txt[0m
|
||||
INFO : - [34mPath2[0m [35mQueue copy to Path1[0m - [36m{path1/}file2.txt[0m
|
||||
INFO : - [34mPath2[0m [35mQueue copy to Path1[0m - [36m{path1/}subdir/file21.txt[0m
|
||||
INFO : - [34mPath2[0m [35mDo queued copies to[0m - [36mPath1[0m
|
||||
INFO : - [34mPath1[0m [35mDo queued copies to[0m - [36mPath2[0m
|
||||
INFO : Updating listings
|
||||
INFO : Validating listings for Path1 "{path1/}" vs Path2 "{path2/}"
|
||||
INFO : Bisync successful
|
||||
INFO : [32mBisync successful[0m
|
||||
|
||||
Reference in New Issue
Block a user