New commands for the registry package management (pack, publish, unpublish)

This commit is contained in:
Ivan Kravets
2020-07-15 23:16:46 +03:00
parent a6f143d1ca
commit ca33058637
4 changed files with 21 additions and 19 deletions

View File

@@ -38,7 +38,12 @@ def cli():
@cli.command("pack", short_help="Create a tarball from a package")
@click.argument("package", required=True, metavar="<source directory, tar.gz or zip>")
@click.argument(
"package",
required=True,
default=os.getcwd,
metavar="<source directory, tar.gz or zip>",
)
@click.option(
"-o", "--output", help="A destination path (folder or a full path to file)"
)
@@ -49,7 +54,12 @@ def package_pack(package, output):
@cli.command("publish", short_help="Publish a package to the registry")
@click.argument("package", required=True, metavar="<source directory, tar.gz or zip>")
@click.argument(
"package",
required=True,
default=os.getcwd,
metavar="<source directory, tar.gz or zip>",
)
@click.option(
"--owner",
help="PIO Account username (can be organization username). "