mirror of
https://github.com/rclone/rclone.git
synced 2026-01-01 16:13:35 +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,55 +1,55 @@
|
||||
(01) : test max-delete-path2-force
|
||||
[36m(01) :[0m [34mtest max-delete-path2-force[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 delete >50% of remote files
|
||||
(05) : delete-file {path2/}file1.txt
|
||||
(06) : delete-file {path2/}file2.txt
|
||||
(07) : delete-file {path2/}file3.txt
|
||||
(08) : delete-file {path2/}file4.txt
|
||||
(09) : delete-file {path2/}file5.txt
|
||||
[36m(04) :[0m [34mtest delete >50% of remote files[0m
|
||||
[36m(05) :[0m [34mdelete-file {path2/}file1.txt[0m
|
||||
[36m(06) :[0m [34mdelete-file {path2/}file2.txt[0m
|
||||
[36m(07) :[0m [34mdelete-file {path2/}file3.txt[0m
|
||||
[36m(08) :[0m [34mdelete-file {path2/}file4.txt[0m
|
||||
[36m(09) :[0m [34mdelete-file {path2/}file5.txt[0m
|
||||
|
||||
(10) : test sync should fail due to too many path2 deletes
|
||||
(11) : bisync
|
||||
[36m(10) :[0m [34mtest sync should fail due to too many path2 deletes[0m
|
||||
[36m(11) :[0m [34mbisync[0m
|
||||
INFO : Synching Path1 "{path1/}" with Path2 "{path2/}"
|
||||
INFO : Path1 checking for diffs
|
||||
INFO : Path2 checking for diffs
|
||||
INFO : - Path2 File was deleted - file1.txt
|
||||
INFO : - Path2 File was deleted - file2.txt
|
||||
INFO : - Path2 File was deleted - file3.txt
|
||||
INFO : - Path2 File was deleted - file4.txt
|
||||
INFO : - Path2 File was deleted - file5.txt
|
||||
INFO : - [34mPath2[0m [35mFile was deleted[0m - [36mfile1.txt[0m
|
||||
INFO : - [34mPath2[0m [35mFile was deleted[0m - [36mfile2.txt[0m
|
||||
INFO : - [34mPath2[0m [35mFile was deleted[0m - [36mfile3.txt[0m
|
||||
INFO : - [34mPath2[0m [35mFile was deleted[0m - [36mfile4.txt[0m
|
||||
INFO : - [34mPath2[0m [35mFile was deleted[0m - [36mfile5.txt[0m
|
||||
INFO : Path2: 5 changes: 0 new, 0 newer, 0 older, 5 deleted
|
||||
ERROR : Safety abort: too many deletes (>50%, 5 of 9) on Path2 "{path2/}". Run with --force if desired.
|
||||
NOTICE: Bisync aborted. Please try again.
|
||||
NOTICE: [31mBisync aborted. Please try again.[0m
|
||||
Bisync error: too many deletes
|
||||
(12) : copy-listings initial-fail
|
||||
[36m(12) :[0m [34mcopy-listings initial-fail[0m
|
||||
|
||||
(13) : test apply force option. sync should run.
|
||||
(14) : bisync force
|
||||
[36m(13) :[0m [34mtest apply force option. sync should run.[0m
|
||||
[36m(14) :[0m [34mbisync force[0m
|
||||
INFO : Synching Path1 "{path1/}" with Path2 "{path2/}"
|
||||
INFO : Path1 checking for diffs
|
||||
INFO : Path2 checking for diffs
|
||||
INFO : - Path2 File was deleted - file1.txt
|
||||
INFO : - Path2 File was deleted - file2.txt
|
||||
INFO : - Path2 File was deleted - file3.txt
|
||||
INFO : - Path2 File was deleted - file4.txt
|
||||
INFO : - Path2 File was deleted - file5.txt
|
||||
INFO : - [34mPath2[0m [35mFile was deleted[0m - [36mfile1.txt[0m
|
||||
INFO : - [34mPath2[0m [35mFile was deleted[0m - [36mfile2.txt[0m
|
||||
INFO : - [34mPath2[0m [35mFile was deleted[0m - [36mfile3.txt[0m
|
||||
INFO : - [34mPath2[0m [35mFile was deleted[0m - [36mfile4.txt[0m
|
||||
INFO : - [34mPath2[0m [35mFile was deleted[0m - [36mfile5.txt[0m
|
||||
INFO : Path2: 5 changes: 0 new, 0 newer, 0 older, 5 deleted
|
||||
INFO : Applying changes
|
||||
INFO : - Path1 Queue delete - {path1/}file1.txt
|
||||
INFO : - Path1 Queue delete - {path1/}file2.txt
|
||||
INFO : - Path1 Queue delete - {path1/}file3.txt
|
||||
INFO : - Path1 Queue delete - {path1/}file4.txt
|
||||
INFO : - Path1 Queue delete - {path1/}file5.txt
|
||||
INFO : - Path2 Do queued copies to - Path1
|
||||
INFO : - [34mPath1[0m [35mQueue delete[0m - [36m{path1/}file1.txt[0m
|
||||
INFO : - [34mPath1[0m [35mQueue delete[0m - [36m{path1/}file2.txt[0m
|
||||
INFO : - [34mPath1[0m [35mQueue delete[0m - [36m{path1/}file3.txt[0m
|
||||
INFO : - [34mPath1[0m [35mQueue delete[0m - [36m{path1/}file4.txt[0m
|
||||
INFO : - [34mPath1[0m [35mQueue delete[0m - [36m{path1/}file5.txt[0m
|
||||
INFO : - [34mPath2[0m [35mDo queued copies to[0m - [36mPath1[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