forked from platformio/platformio-core
Implement "package pack" command
This commit is contained in:
1 parent
19cdc7d34a
commit
8346b9822d
3 files changed
+13
-14
No files matched your search
@@ -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"
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user