mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 14:30:09 +01:00
auto populate cli reference in README.md
This commit is contained in:
parent
e5c7766cbc
commit
803b0bf6a6
2 changed files with 129 additions and 60 deletions
19
makefile
19
makefile
|
|
@ -70,3 +70,22 @@ depgraph:
|
|||
--reverse --include-missing \
|
||||
-x 'click.*' 'toml.*' 'pretty_traceback.*' \
|
||||
-o pycalver_deps.svg
|
||||
|
||||
|
||||
README.md: src/pycalver/__main__.py makefile
|
||||
@git add README.md
|
||||
@printf '\n```\n$$ pycalver --help\n' > /tmp/pycalver_help.txt
|
||||
@$(DEV_ENV)/bin/pycalver --help >> /tmp/pycalver_help.txt
|
||||
@printf '```\n\n' >> /tmp/pycalver_help.txt
|
||||
|
||||
sed -i -ne '/<!-- BEGIN pycalver --help -->/ {p; r /tmp/pycalver_help.txt' \
|
||||
-e ':a; n; /<!-- END pycalver --help -->/ {p; b}; ba}; p' \
|
||||
README.md
|
||||
|
||||
@printf '\n```\n$$ pycalver bump --help\n' > /tmp/pycalver_help.txt
|
||||
@$(DEV_ENV)/bin/pycalver bump --help >> /tmp/pycalver_help.txt
|
||||
@printf '```\n\n' >> /tmp/pycalver_help.txt
|
||||
|
||||
sed -i -ne '/<!-- BEGIN pycalver bump --help -->/ {p; r /tmp/pycalver_help.txt' \
|
||||
-e ':a; n; /<!-- END pycalver bump --help -->/ {p; b}; ba}; p' \
|
||||
README.md
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue