Implement "package pack" command

This commit is contained in:
Ivan Kravets
2020-05-26 22:17:55 +03:00
parent 19cdc7d34a
commit 8346b9822d
3 changed files with 13 additions and 14 deletions

View File

@@ -34,6 +34,14 @@ def cli():
pass
@cli.command("pack", short_help="Create a tarball from a package")
@click.argument("package", required=True, metavar="[source directory, tar.gz or zip]")
def package_pack(package):
p = PackagePacker(package)
tarball_path = p.pack()
click.secho('Wrote a tarball to "%s"' % tarball_path, fg="green")
@cli.command(
"publish", short_help="Publish a package to the PlatformIO Universal Registry"
)