hugo/commands
Cameron Moore f039e3be9e parser: Refactor frontmatter parser and add tests
Lots of cleanups here:

- Refactor InterfaceToConfig and InterfaceToFrontMatter to use io.Writer.
- Simplify InterfaceToFrontMatter by wrapping InterfaceToConfig.
- Export FrontmatterType since we return it in DetectFrontMatter.
- Refactor removeTOMLIdentifier to avoid blindly replacing "+++".
- Update HandleJSONMetaData to return an empty map on nil input.
- Updates vendored goorgeous package and test for org-mode frontmatter.
- Add tests and godoc comments.

Coverage for parser package increased from 45.2% to 85.2%.
2017-03-11 17:52:25 +01:00
..
benchmark.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
check.go Remove ShowPlan 2016-11-23 16:35:49 +01:00
commandeer.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
convert.go all: Fix some govet complaints 2017-03-09 14:18:12 +01:00
env.go all: Use jww instead of fmt for printing 2016-11-22 22:06:48 +01:00
gen.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
genautocomplete.go Fix example for autocomplete 2016-06-22 13:59:53 +02:00
gendoc.go all: Refactor to nonglobal file systems 2017-02-04 11:37:25 +07:00
genman.go all: Refactor to nonglobal file systems 2017-02-04 11:37:25 +07:00
hugo.go Handle Hugo version strings with patch level 2017-03-01 15:49:07 +01:00
hugo_windows.go Move cobra.MousetrapHelpText to hugo_windows.go 2015-12-16 21:26:47 -07:00
import_jekyll.go parser: Refactor frontmatter parser and add tests 2017-03-11 17:52:25 +01:00
import_jekyll_test.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
limit_darwin.go commans: Remove unneeded build constraint 2017-01-05 15:45:25 +01:00
limit_others.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
list.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
list_config.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
new.go parser: Refactor frontmatter parser and add tests 2017-03-11 17:52:25 +01:00
new_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
server.go commands: Remove flagChanged from commandeer 2017-02-21 15:08:45 +01:00
server_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
undraft.go all: Refactor to nonglobal file systems 2017-02-04 11:37:25 +07:00
undraft_test.go parser: Refactor frontmatter parser and add tests 2017-03-11 17:52:25 +01:00
version.go commands: Show OS and ARCH in version output 2017-01-06 11:54:53 +01:00