forked from platformio/platformio-core
Rename "package" command to "pkg"
This commit is contained in:
@@ -16,13 +16,12 @@ import os
|
||||
|
||||
import click
|
||||
|
||||
from platformio.package.commands import cli
|
||||
from platformio.package.manifest.parser import ManifestParserFactory
|
||||
from platformio.package.manifest.schema import ManifestSchema, ManifestValidationError
|
||||
from platformio.package.pack import PackagePacker
|
||||
|
||||
|
||||
@cli.command("pack", short_help="Create a tarball from a package")
|
||||
@click.command("pack", short_help="Create a tarball from a package")
|
||||
@click.argument(
|
||||
"package",
|
||||
required=True,
|
||||
@@ -32,7 +31,7 @@ from platformio.package.pack import PackagePacker
|
||||
@click.option(
|
||||
"-o", "--output", help="A destination path (folder or a full path to file)"
|
||||
)
|
||||
def package_pack(package, output):
|
||||
def package_pack_cmd(package, output):
|
||||
p = PackagePacker(package)
|
||||
archive_path = p.pack(output)
|
||||
# validate manifest
|
||||
|
||||
Reference in New Issue
Block a user