Hi there! > Is it possible to support the codeship.com badges?
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#L43 The 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. > Will emd always assume the input file to be README.e.md, or something else? 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 supported For instance its a simple extension value extraction, https://github.com/mh-cbon/emd/blob/master/std/emd.go#L18 It will need some work to properly handle some extensions like .bat .cmd, but until then, it works! On Saturday, March 4, 2017 at 11:32:39 PM UTC+1, Tong Sun wrote: > > Looks really good, thanks. > > Is it possible to support the codeship.com badges? They are ID based. > e.g., > > https://codeship.com/projects/147070 > https://codeship.com/projects/135255 > > > BTW, just to clearly understand the command line: > > emd gen -out README.md >> to generate an updated version of the README file. > > > Will emd always assume the input file to be README.e.md, or something > else? > > Thanks > > > On Wednesday, February 22, 2017 at 4:40:27 PM UTC-5, mhh...@gmail.com > wrote: >> >> Hi, >> >> I made this package to spare me some efforts >> while maintaining README files of my projects. >> >> Its a binary written in go which take advantages >> of text/template to allow dynamic generation >> of the README file with help of >> some fine grained helpers. >> >> Just check the README file of the project >> <https://github.com/mh-cbon/emd> >> and compare it with the e.md file >> <https://github.com/mh-cbon/emd/blob/master/README.e.md> >> I created for this project. >> >> With help of emd, now i can invoke >> emd gen -out README.md >> to generate an updated version of the README file >> (for most of what is doable to automate). >> >> Find the list of helpers here >> <https://github.com/mh-cbon/emd#templates-helper> >> >> I think its a good companion with godoc, >> each other being strong in the companion weaknesses. >> godoc is better for structured text for api documentation, >> markdown is better at loosely structured text. >> >> Find the repo at https://github.com/mh-cbon/emd >> >> That s it! >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.