Mercurial > hg
diff mercurial/templates/json/map @ 24590:0bb733dfcabe
json: implement {helptopics} template
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 01 Apr 2015 22:16:05 -0700 |
parents | 30a737ae9b7d |
children | 517f3e190a5d |
line wrap: on
line diff
--- a/mercurial/templates/json/map Wed Apr 01 22:04:03 2015 -0700 +++ b/mercurial/templates/json/map Wed Apr 01 22:16:05 2015 -0700 @@ -83,7 +83,15 @@ fileannotate = '"not yet implemented"' filelog = '"not yet implemented"' graph = '"not yet implemented"' -helptopics = '"not yet implemented"' +helptopics = '\{ + "topics": [{join(topics%helptopicentry, ", ")}], + "earlycommands": [{join(earlycommands%helptopicentry, ", ")}], + "othercommands": [{join(othercommands%helptopicentry, ", ")}] + }' +helptopicentry = '\{ + "topic": {topic|json}, + "summary": {summary|json} + }' help = '"not yet implemented"' filenodelink = '' filenolink = ''