goreadme icon indicating copy to clipboard operation
goreadme copied to clipboard

feat: Add flag to override output destination

Open thaney071 opened this issue 2 years ago • 2 comments

Adds a flag to override the destination output.

The reason for adding a flag override in addition to the env setting is for easier usage with go generate and for automated scripting of readme generations since all other options are controled by flags.

This provides better access to using this tool for those not able to use Github actions.

Closes #100

thaney071 avatar Mar 20 '22 02:03 thaney071

Codecov Report

Merging #121 (6291301) into master (bbdf026) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #121   +/-   ##
=======================================
  Coverage   69.13%   69.13%           
=======================================
  Files           3        3           
  Lines          81       81           
=======================================
  Hits           56       56           
  Misses         15       15           
  Partials       10       10           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 57d08b4...6291301. Read the comment docs.

codecov[bot] avatar Mar 20 '22 05:03 codecov[bot]

Hi! Note that the default behavior is to write the content to stdout. Maybe you can pipe stdout to a file of your choice? I would want to avoid adding too many flags.

Also - I suggest to split this to two PRs, one that adds the flag, and one that creates the parent directory in case it does not exist.

posener avatar Mar 20 '22 05:03 posener