Yes its possible to add support for this badge,
It is just a template registered to the generator like this,
https://github.com/mh-cbon/emd/blob/master/std/emd.go#L43The codeship badge look likes this,
https://codeship.com/projects/YOUR_PROJECT_UUID/status?branch=master
The only problem is this UUID value.
Which i dont know where the program can fetch it without involving manual operation.
Even an http redirect from
codehip.com/<my poject> =>
codehip.com/<uuid>
could solve that small problem.
One solution to that is to allow injection of variable from the command line,
I don t like it very much because the resulting command line is ugly,
emd --vars '{some: "value"}'
On the other hand, when the command is dropped into a sort of makefile,
it hurts once only, acceptable ?
Also, on longer term with multiplicity of badges, such capability seems to be a must have.
Let me know your thoughts.
BTW, i can t access your two links.
Nop, the gen sub command takes an -in argument,
$ emd gen -help
emd - 0.0.0
Command "gen": Process an emd file.
-data string
JSON map of data
-help
Show help
-in string
Input src file (default "README.e.md")
-out string
Output destination, defaults to stdout (default "-")Given the Q i should assume the README is not so clear,
bad xD
>
What file types are supportedFor instance its a simple extension value extraction,
https://github.com/mh-cbon/emd/blob/master/std/emd.go#L18It will need some work to properly handle some extensions like .bat .cmd,
but until then, it works!