Rename "package" command to "pkg"

This commit is contained in:
Ivan Kravets
2022-02-11 22:24:37 +02:00
parent 83d115acca
commit 4982676ca8
6 changed files with 29 additions and 21 deletions

View File

@@ -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