This go language console application is used to download and parse Transport for London CMS files, so that they can be compared (manually) with the versions that are in source code.
The source code versions although deployed in the pipeline, and immediately overwritten by a CMS release in any deployment. Therefore, the code team use the 'draft' versions and in test continue to see the draft versions. When code is deployed to live or pre-live environments the live versions of CMS are also deployed.
Run command includes option parameter
0,1,2or3at end.
0and2should be used to download CMS for TFL web (draft and live respectively)
1and3should be used to download CMS for RUC web (draft and live repsectively)
4and5should be used to download CMS not html content for RUC web (draft and live respectively)
go run runconcurrent.go log.go 1#0 https://cms.hub.tfl.gov.uk/published/draft-templates/draft-content/views/cms/
#1 https://cms.hub.tfl.gov.uk/published/LRUC/draft-templates/draft-content/views/cms/modes/driving/
#2 https://cms.hub.tfl.gov.uk/published/live-templates/live-content/views/cms/
#3 https://cms.hub.tfl.gov.uk/published/LRUC/live-templates/live-content/views/cms/modes/driving/
#4 https://cms.hub.tfl.gov.uk/published/LRUC/draft-templates/draft-content/ruc-cdn/static/cms/
#5 https://cms.hub.tfl.gov.uk/published/LRUC/live-templates/live-content/ruc-cdn/static/cms/
At the request of Jade (UX) I created a slightly altered version of the download that generated a report detailing a sitemap
The same options apply
go run runsitemap.go smlog.go 1