mirror of
https://github.com/rclone/rclone.git
synced 2025-08-19 01:46:31 +02: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:
126
cmd/bisync/testdata/test_changes/golden/test.log
vendored
126
cmd/bisync/testdata/test_changes/golden/test.log
vendored
@@ -1,71 +1,71 @@
|
||||
(01) : test changes
|
||||
[36m(01) :[0m [34mtest changes[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 make modifications on both paths
|
||||
(05) : test new on path2 - file10
|
||||
(06) : touch-copy 2001-01-02 {datadir/}file10.txt {path2/}
|
||||
[36m(04) :[0m [34mtest make modifications on both paths[0m
|
||||
[36m(05) :[0m [34mtest new on path2 - file10[0m
|
||||
[36m(06) :[0m [34mtouch-copy 2001-01-02 {datadir/}file10.txt {path2/}[0m
|
||||
|
||||
(07) : test newer on path2 - file1
|
||||
(08) : touch-copy 2001-01-02 {datadir/}file1.txt {path2/}
|
||||
[36m(07) :[0m [34mtest newer on path2 - file1[0m
|
||||
[36m(08) :[0m [34mtouch-copy 2001-01-02 {datadir/}file1.txt {path2/}[0m
|
||||
|
||||
(09) : test new on path1 - file11
|
||||
(10) : touch-copy 2001-01-02 {datadir/}file11.txt {path1/}
|
||||
[36m(09) :[0m [34mtest new on path1 - file11[0m
|
||||
[36m(10) :[0m [34mtouch-copy 2001-01-02 {datadir/}file11.txt {path1/}[0m
|
||||
|
||||
(11) : test newer on path1 - file2
|
||||
(12) : touch-copy 2001-01-02 {datadir/}file2.txt {path1/}
|
||||
[36m(11) :[0m [34mtest newer on path1 - file2[0m
|
||||
[36m(12) :[0m [34mtouch-copy 2001-01-02 {datadir/}file2.txt {path1/}[0m
|
||||
|
||||
(13) : test deleted on path2 - file3
|
||||
(14) : delete-file {path2/}file3.txt
|
||||
[36m(13) :[0m [34mtest deleted on path2 - file3[0m
|
||||
[36m(14) :[0m [34mdelete-file {path2/}file3.txt[0m
|
||||
|
||||
(15) : test deleted on path1 - file4
|
||||
(16) : delete-file {path1/}file4.txt
|
||||
[36m(15) :[0m [34mtest deleted on path1 - file4[0m
|
||||
[36m(16) :[0m [34mdelete-file {path1/}file4.txt[0m
|
||||
|
||||
(17) : test deleted on both paths - file8
|
||||
(18) : delete-file {path1/}file8.txt
|
||||
(19) : delete-file {path2/}file8.txt
|
||||
[36m(17) :[0m [34mtest deleted on both paths - file8[0m
|
||||
[36m(18) :[0m [34mdelete-file {path1/}file8.txt[0m
|
||||
[36m(19) :[0m [34mdelete-file {path2/}file8.txt[0m
|
||||
|
||||
(20) : test changed on both paths - file5 (file5R, file5L)
|
||||
(21) : touch-glob 2001-01-02 {datadir/} file5R.txt
|
||||
(22) : copy-as {datadir/}file5R.txt {path2/} file5.txt
|
||||
(23) : touch-glob 2001-03-04 {datadir/} file5L.txt
|
||||
(24) : copy-as {datadir/}file5L.txt {path1/} file5.txt
|
||||
[36m(20) :[0m [34mtest changed on both paths - file5 (file5R, file5L)[0m
|
||||
[36m(21) :[0m [34mtouch-glob 2001-01-02 {datadir/} file5R.txt[0m
|
||||
[36m(22) :[0m [34mcopy-as {datadir/}file5R.txt {path2/} file5.txt[0m
|
||||
[36m(23) :[0m [34mtouch-glob 2001-03-04 {datadir/} file5L.txt[0m
|
||||
[36m(24) :[0m [34mcopy-as {datadir/}file5L.txt {path1/} file5.txt[0m
|
||||
|
||||
(25) : test newer on path2 and deleted on path1 - file6
|
||||
(26) : touch-copy 2001-01-02 {datadir/}file6.txt {path2/}
|
||||
(27) : delete-file {path1/}file6.txt
|
||||
[36m(25) :[0m [34mtest newer on path2 and deleted on path1 - file6[0m
|
||||
[36m(26) :[0m [34mtouch-copy 2001-01-02 {datadir/}file6.txt {path2/}[0m
|
||||
[36m(27) :[0m [34mdelete-file {path1/}file6.txt[0m
|
||||
|
||||
(28) : test newer on path1 and deleted on path2 - file7
|
||||
(29) : touch-copy 2001-01-02 {datadir/}file7.txt {path1/}
|
||||
(30) : delete-file {path2/}file7.txt
|
||||
[36m(28) :[0m [34mtest newer on path1 and deleted on path2 - file7[0m
|
||||
[36m(29) :[0m [34mtouch-copy 2001-01-02 {datadir/}file7.txt {path1/}[0m
|
||||
[36m(30) :[0m [34mdelete-file {path2/}file7.txt[0m
|
||||
|
||||
(31) : test bisync run
|
||||
(32) : bisync
|
||||
[36m(31) :[0m [34mtest bisync run[0m
|
||||
[36m(32) :[0m [34mbisync[0m
|
||||
INFO : Synching Path1 "{path1/}" with Path2 "{path2/}"
|
||||
INFO : Path1 checking for diffs
|
||||
INFO : - Path1 File is new - file11.txt
|
||||
INFO : - Path1 File is newer - file2.txt
|
||||
INFO : - Path1 File is newer - file5.txt
|
||||
INFO : - Path1 File is newer - file7.txt
|
||||
INFO : - Path1 File was deleted - file4.txt
|
||||
INFO : - Path1 File was deleted - file6.txt
|
||||
INFO : - Path1 File was deleted - file8.txt
|
||||
INFO : - [34mPath1[0m [35mFile is newer[0m - [36mfile2.txt[0m
|
||||
INFO : - [34mPath1[0m [35mFile was deleted[0m - [36mfile4.txt[0m
|
||||
INFO : - [34mPath1[0m [35mFile is newer[0m - [36mfile5.txt[0m
|
||||
INFO : - [34mPath1[0m [35mFile was deleted[0m - [36mfile6.txt[0m
|
||||
INFO : - [34mPath1[0m [35mFile is newer[0m - [36mfile7.txt[0m
|
||||
INFO : - [34mPath1[0m [35mFile was deleted[0m - [36mfile8.txt[0m
|
||||
INFO : - [34mPath1[0m [35mFile is new[0m - [36mfile11.txt[0m
|
||||
INFO : Path1: 7 changes: 1 new, 3 newer, 0 older, 3 deleted
|
||||
INFO : Path2 checking for diffs
|
||||
INFO : - Path2 File is new - file10.txt
|
||||
INFO : - Path2 File is newer - file1.txt
|
||||
INFO : - Path2 File is newer - file5.txt
|
||||
INFO : - Path2 File is newer - file6.txt
|
||||
INFO : - Path2 File was deleted - file3.txt
|
||||
INFO : - Path2 File was deleted - file7.txt
|
||||
INFO : - Path2 File was deleted - file8.txt
|
||||
INFO : - [34mPath2[0m [35mFile is newer[0m - [36mfile1.txt[0m
|
||||
INFO : - [34mPath2[0m [35mFile was deleted[0m - [36mfile3.txt[0m
|
||||
INFO : - [34mPath2[0m [35mFile is newer[0m - [36mfile5.txt[0m
|
||||
INFO : - [34mPath2[0m [35mFile is newer[0m - [36mfile6.txt[0m
|
||||
INFO : - [34mPath2[0m [35mFile was deleted[0m - [36mfile7.txt[0m
|
||||
INFO : - [34mPath2[0m [35mFile was deleted[0m - [36mfile8.txt[0m
|
||||
INFO : - [34mPath2[0m [35mFile is new[0m - [36mfile10.txt[0m
|
||||
INFO : Path2: 7 changes: 1 new, 3 newer, 0 older, 3 deleted
|
||||
INFO : Applying changes
|
||||
INFO : Checking potential conflicts...
|
||||
@@ -73,21 +73,21 @@ ERROR : file5.txt: md5 differ
|
||||
NOTICE: Local file system at {path2}: 1 differences found
|
||||
NOTICE: Local file system at {path2}: 1 errors while checking
|
||||
INFO : Finished checking the potential conflicts. 1 differences found
|
||||
INFO : - Path1 Queue copy to Path2 - {path2/}file11.txt
|
||||
INFO : - Path1 Queue copy to Path2 - {path2/}file2.txt
|
||||
INFO : - Path2 Queue delete - {path2/}file4.txt
|
||||
NOTICE: - WARNING New or changed in both paths - file5.txt
|
||||
NOTICE: - Path1 Renaming Path1 copy - {path1/}file5.txt..path1
|
||||
NOTICE: - Path1 Queue copy to Path2 - {path2/}file5.txt..path1
|
||||
NOTICE: - Path2 Renaming Path2 copy - {path2/}file5.txt..path2
|
||||
NOTICE: - Path2 Queue copy to Path1 - {path1/}file5.txt..path2
|
||||
INFO : - Path2 Queue copy to Path1 - {path1/}file6.txt
|
||||
INFO : - Path1 Queue copy to Path2 - {path2/}file7.txt
|
||||
INFO : - Path2 Queue copy to Path1 - {path1/}file1.txt
|
||||
INFO : - Path2 Queue copy to Path1 - {path1/}file10.txt
|
||||
INFO : - Path1 Queue delete - {path1/}file3.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/}file11.txt[0m
|
||||
INFO : - [34mPath1[0m [35mQueue copy to Path2[0m - [36m{path2/}file2.txt[0m
|
||||
INFO : - [34mPath2[0m [35mQueue delete[0m - [36m{path2/}file4.txt[0m
|
||||
NOTICE: - [34mWARNING[0m [35mNew or changed in both paths[0m - [36mfile5.txt[0m
|
||||
NOTICE: - [34mPath1[0m [35mRenaming Path1 copy[0m - [36m{path1/}file5.txt..path1[0m
|
||||
NOTICE: - [34mPath1[0m [35mQueue copy to Path2[0m - [36m{path2/}file5.txt..path1[0m
|
||||
NOTICE: - [34mPath2[0m [35mRenaming Path2 copy[0m - [36m{path2/}file5.txt..path2[0m
|
||||
NOTICE: - [34mPath2[0m [35mQueue copy to Path1[0m - [36m{path1/}file5.txt..path2[0m
|
||||
INFO : - [34mPath2[0m [35mQueue copy to Path1[0m - [36m{path1/}file6.txt[0m
|
||||
INFO : - [34mPath1[0m [35mQueue copy to Path2[0m - [36m{path2/}file7.txt[0m
|
||||
INFO : - [34mPath2[0m [35mQueue copy to Path1[0m - [36m{path1/}file1.txt[0m
|
||||
INFO : - [34mPath2[0m [35mQueue copy to Path1[0m - [36m{path1/}file10.txt[0m
|
||||
INFO : - [34mPath1[0m [35mQueue delete[0m - [36m{path1/}file3.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