Releases: mh-cbon/emd
Releases · mh-cbon/emd
1.0.1
1.0.0
0.0.12
0.0.11
-
CLI:
- Fix an issue in argument handling.
-
Path detection: #17
- The mechanism to detect and extract information from the path,
is improved to work with anything that matches src/[provider]/[user]/[repo]/[path...]
- The mechanism to detect and extract information from the path,
-
Temaplate func helpers:
- pkg_doc: won t panic anymore if the default
main.go
file is not yet created.
- pkg_doc: won t panic anymore if the default
-
Temaplates: #16
- Fix templates output to avoid double
/
.
- Fix templates output to avoid double
-
dev:
- Largely improved tests.
Contributors : mh-cbon, suntong
0.0.10
-
CLI:
- new
init
command: Writes a basicREADME.e.md
frile to get started gen
: removed useless confirmation message on successful operation.stdin
: emd can now receives the input template from STDIN.- verbosity: Added support for verbosity with env variable
VERBOSE=y
.
- new
-
Predefined data:
- New api is introduced to better detect predefined data.
- ProjectPath is better handled when its a symlink outside of
GOPATH
(#15 thanks suntong)
-
Prelude data:
- It is now possible to override predefined data within the prelude.
This should allow the end user to recover from a buggy implementation in the pre defined variables declaration.
- It is now possible to override predefined data within the prelude.
-
TOC:
- #16 Improve link generator to handle
[]|',
- Multiple fixes to properly render the TOC level of each header.
- #16 Improve link generator to handle
-
Template: added multiple new functions to help to work with templates
- set(name string, x interface{}): Save given value
x
asname
on dot.
. - link(url string, text ...string) string: Prints markdown link.
- img(url string, alt ...string) string: Prints markdown image.
- concat(x ...string) string: Concat given arguments.
- pathjoin(x ...string) string: Join given arguments with
/
.
- set(name string, x interface{}): Save given value
-
dev:
- added small test suites into
test.sh
- added small test suites into
Contributors : mh-cbon, suntong
0.0.10-beta
- CLI:
- new
init
command: Writes a basicREADME.e.md
frile to get started gen
: removed useless confirmation message on successful operation.
- new
- Predefined data:
- New api is introduced to better detect predefined data.
- Prelude data:
- It is now possible to override predefined data within the prelude.
This should allow the end user to recover from a buggy implementation in the pre defined variables declaration.
- It is now possible to override predefined data within the prelude.
- TOC:
- #16 Improve link generator to handle
[]|',
- Multiple fixes to properly render the TOC level of each header.
- #16 Improve link generator to handle
- Template: added multiple new functions to help to work with templates
- set(name string, x interface{}): Save given value
x
asname
on dot.
. - link(url string, text ...string) string: Prints markdown link.
- img(url string, alt ...string) string: Prints markdown image.
- concat(x ...string) string: Concat given arguments.
- pathjoin(x ...string) string: Join given arguments with
/
.
- set(name string, x interface{}): Save given value
Contributors : mh-cbon
0.0.9
- feature #10: Emd file can define a prelude block of
yaml
data to inject into the template processing. - cli fix: Before the -in argument was mandatory. It was not possible to use the default template.
- feature installer: Fixed apt/rpm repositories.
- feature #8: ensure an errored command line execution displays correctly.
- feature: added new template functions
- yaml(file string, keypaths ...string): parses and build new yaml content of given file.
- preline(pre , content string): prepends pre for every lines of content.
- echo(s ...string): echo every string s.
- read(file string): returns file content.
- cat(file string): to display the file content.
- exec(bin string, args ...string): to exec a program.
- shell(s string): to exec a command line on the underlying shell (it is not cross compatible).
- color(color string, content string): to embed content in a block code with color.
- gotest(rpkg string, run string, args ...string): exec
go test <rpkg> -v -run <run> <args...>
. - toc(maximportance string, title string): display a TOC.
- feature: added new badge templates
- license/shields: tp show a license badge
- badge/codeship: tp show a codeship badge
- deprecation #7: some template functions were deprecated to avoid pre defined formatting,
old behavior can be reset via new options defined into the prelude data. See also the new color function.- file is dprecated for cat
- cli is dprecated for exec
- badges fix #14: removed useless whitespace
- dev: Added support for glide, it was required to handle yaml.
- dev: updated tests
- dev: godoc documentation improvements.
Contributors : mh-cbon, suntong
0.0.9-beta9
- fix default reading of the md file
Contributors : mh-cbon
0.0.9-beta8
- fix #15: properly handle symbolic links
- fix cli: it was not possible to use the default template
Contributors : mh-cbon
0.0.9-beta7
- fix wrong import path
Contributors : mh-cbon