Skip to content

Commit

Permalink
[WIP] version
Browse files Browse the repository at this point in the history
  • Loading branch information
jobiols committed Jul 24, 2024
1 parent db14f80 commit 53b1e90
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions tools/gen_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,45 +295,45 @@ def gen_one_addon_readme(org_name, repo_name, branch, addon_name, addon_dir, man
return readme_filename


@click.command()
@click.argument(
"files",
type=click.Path(exists=False),
nargs=-1,
)
@click.option(
"--version",
is_flag=True,
help="Show version and exit",
)
@click.option(
"--org-name",
help="Organization name",
)
@click.option(
"--repo-name",
help="Repository name, eg. server-tools.",
)
@click.option(
"--branch",
help="Odoo series. eg 11.0.",
)
@click.option(
"--addons-dir",
type=click.Path(dir_okay=True, file_okay=False, exists=False),
help="Directory containing several addons, the README will be "
"generated for all installable addons found there...",
)
def gen_readme(files, version, org_name, repo_name, branch, addons_dir):
# @click.command()
# @click.argument(
# "files",
# type=click.Path(exists=False),
# nargs=-1,
# )
# @click.option(
# "--version",
# is_flag=True,
# help="Show version and exit",
# )
# @click.option(
# "--org-name",
# help="Organization name",
# )
# @click.option(
# "--repo-name",
# help="Repository name, eg. server-tools.",
# )
# @click.option(
# "--branch",
# help="Odoo series. eg 11.0.",
# )
# @click.option(
# "--addons-dir",
# type=click.Path(dir_okay=True, file_okay=False, exists=False),
# help="Directory containing several addons, the README will be "
# "generated for all installable addons found there...",
# )
def gen_readme():
"""main function esta es la entrada"""

import sys

args = sys.argv[1:]
print(args)
print('-------------------------')
print(files, version, org_name, repo_name, branch, addons_dir)
sys.exit(1)
print("-------------------------")

sys.exit(1)

if version:
print(f"Gen readme version {__version__}")
Expand Down

0 comments on commit 53b1e90

Please sign in to comment.