all: Refactor to nonglobal Viper, i18n etc.
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 5 Feb 2017 03:20:06 +0000 (10:20 +0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 17 Feb 2017 16:15:26 +0000 (17:15 +0100)
commit93ca7c9e958e34469a337e4efcc7c75774ec50fd
tree5dfa296cfe74fd5ef8f0d41ea4078704f453aa04
parente34af6ee30f70f5780a281e2fd8f4ed9b487ee61
all: Refactor to nonglobal Viper, i18n etc.

This is a final rewrite that removes all the global state in Hugo, which also enables
the use if `t.Parallel` in tests.

Updates #2701
Fixes #3016
102 files changed:
commands/benchmark.go
commands/commandeer.go [new file with mode: 0644]
commands/convert.go
commands/hugo.go
commands/list.go
commands/list_config.go
commands/new.go
commands/new_test.go
commands/server.go
commands/server_test.go
config/configProvider.go [new file with mode: 0644]
create/content.go
create/content_test.go
deps/deps.go
helpers/configProvider.go [deleted file]
helpers/content.go
helpers/content_renderer.go
helpers/content_renderer_test.go
helpers/content_test.go
helpers/general.go
helpers/language.go
helpers/language_test.go
helpers/path.go
helpers/path_test.go
helpers/pathspec.go
helpers/pathspec_test.go
helpers/pygments.go
helpers/pygments_test.go
helpers/testhelpers_test.go [new file with mode: 0644]
helpers/url.go
helpers/url_test.go
hugofs/fs.go
hugofs/fs_test.go
hugolib/alias_test.go
hugolib/case_insensitive_test.go
hugolib/config.go
hugolib/config_test.go
hugolib/datafiles_test.go
hugolib/embedded_shortcodes_test.go
hugolib/gitinfo.go
hugolib/handler_page.go
hugolib/handler_test.go
hugolib/hugo_sites.go
hugolib/hugo_sites_build.go
hugolib/hugo_sites_build_test.go
hugolib/i18n.go [deleted file]
hugolib/menu_test.go
hugolib/multilingual.go
hugolib/node_as_page_test.go
hugolib/page.go
hugolib/pageCache_test.go
hugolib/pageGroup_test.go
hugolib/pageSort.go
hugolib/pageSort_test.go
hugolib/page_permalink_test.go
hugolib/page_taxonomy_test.go
hugolib/page_test.go
hugolib/page_time_integration_test.go
hugolib/pagesPrevNext_test.go
hugolib/pagination.go
hugolib/pagination_test.go
hugolib/path_separators_test.go
hugolib/path_separators_windows_test.go
hugolib/permalinks_test.go
hugolib/robotstxt_test.go
hugolib/rss_test.go
hugolib/scratch_test.go
hugolib/shortcode.go
hugolib/shortcode_test.go
hugolib/shortcodeparser_test.go
hugolib/site.go
hugolib/siteJSONEncode_test.go
hugolib/site_render.go
hugolib/site_test.go
hugolib/site_url_test.go
hugolib/sitemap_test.go
hugolib/taxonomy_test.go
hugolib/template_engines_test.go
hugolib/template_test.go
hugolib/testhelpers_test.go
i18n/i18n.go [new file with mode: 0644]
i18n/i18n_test.go [new file with mode: 0644]
i18n/translationProvider.go [new file with mode: 0644]
source/content_directory_test.go
source/file.go
source/file_test.go
source/filesystem.go
source/filesystem_test.go
source/inmemory.go
target/page_test.go
tpl/template.go
tpl/template_ast_transformers_test.go
tpl/template_func_truncate_test.go
tpl/template_funcs.go
tpl/template_funcs_test.go
tpl/template_i18n.go [deleted file]
tpl/template_i18n_test.go [deleted file]
tpl/template_resources.go
tpl/template_resources_test.go
tpl/template_test.go
transform/livereloadinject.go
transform/livereloadinject_test.go