From dff511a2fe7deb280ee059e19747c14f0271a459 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 8 Sep 2016 12:18:58 -0400 Subject: [PATCH] update --- ...comment_1_b71937cb772b3400839755bb11a1ffe4._comment | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/todo/interface_to_the___34__progress__34___of_annex_operations/comment_1_b71937cb772b3400839755bb11a1ffe4._comment b/doc/todo/interface_to_the___34__progress__34___of_annex_operations/comment_1_b71937cb772b3400839755bb11a1ffe4._comment index df74f19cb1..2a5785bfc0 100644 --- a/doc/todo/interface_to_the___34__progress__34___of_annex_operations/comment_1_b71937cb772b3400839755bb11a1ffe4._comment +++ b/doc/todo/interface_to_the___34__progress__34___of_annex_operations/comment_1_b71937cb772b3400839755bb11a1ffe4._comment @@ -62,4 +62,14 @@ That's not a lot more verbose than the earlier version, and it ensures that consumers of the progress objects have all possible information available (including the name of the remote being downloaded from in the above example). + +Less verbose version: + + {"progress-id":"1","action":{"command":"get","key":"SHA256E-s5242880--82cb4363f596cb66e7bc6e4cbfd2bfe8a8b6ac7e6d02557cc0e3944ec8faafc3","file":"bar","note":"from d1..."}} + {"progress-id":"1","percent-progress":"25%","byte-progress":500} + {"progress-id":"1","percent-progress":"75%","byte-progress":1500} + {"command":"get","key":"SHA256E-s5242880--82cb4363f596cb66e7bc6e4cbfd2bfe8a8b6ac7e6d02557cc0e3944ec8faafc3","file":"bar","note":"from d1...","success":true} + +Makes the consumer's job a bit more complicated, and could also make the +implementation in git-annex harder. Is it worth it? """]]