Repairing all the things, after breaking all the stuff

This commit is contained in:
Jules 2022-07-18 10:14:02 +02:00
parent 0e4facacd4
commit e6c5810bdc
2 changed files with 2 additions and 1 deletions

View File

@ -64,6 +64,7 @@ def cli():
@cli.command(help="Generate markdown usage description.")
@click.argument("poetry_project_file", type=click.File(), default="pyproject.toml")
@click.pass_context
def run(ctx, poetry_project_file):
contents = toml.loads(poetry_project_file.read())
try:

View File

@ -7,7 +7,7 @@ if [[ ! -z "$VIRTUAL_ENV" ]]
then
while read -d $'\0' arg ; do
if [[ "$arg" == '--follow-tags' ]] ; then
clickusagemd ${GIT_DIR}pyproject.toml || exit 1
clickusagemd run ${GIT_DIR}pyproject.toml || exit 1
git add ${GIT_DIR}USAGE.md || exit 1
git commit -m"Autogenerated USAGE.md updated and added."
exit 0