Skip to content

Commit 162e81a

Browse files
zestradalacraig2
authored andcommitted
penguin package/unpackage -> pack/unpack
1 parent 7538c46 commit 162e81a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/penguin/__main__.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ def guest_cmd(ctx, args):
874874
@click.option("-o", "--out", type=str, default=None, help="Output tar.gz file path. Defaults to <project_dir_name>.tar.gz")
875875
@verbose_option
876876
@click.pass_context
877-
def package(ctx, project_dir, out):
877+
def pack(ctx, project_dir, out):
878878
"""
879879
Package a penguin project into a distributable archive.
880880
@@ -890,11 +890,11 @@ def package(ctx, project_dir, out):
890890
@click.option("--force", is_flag=True, default=False, help="Forcefully delete output directory if it exists")
891891
@verbose_option
892892
@click.pass_context
893-
def unpackage(ctx, archive, output, force):
893+
def unpack(ctx, archive, output, force):
894894
"""
895895
Extract a packaged penguin project.
896896
897-
ARCHIVE is the path to a .tar.gz file created by 'penguin package'.
897+
ARCHIVE is the path to a .tar.gz file created by 'penguin pack'.
898898
"""
899899
_startup_checks(ctx.obj['VERBOSE'])
900900

@@ -931,7 +931,7 @@ def unpackage(ctx, archive, output, force):
931931
except subprocess.CalledProcessError:
932932
raise ValueError(
933933
"Archive is not a valid penguin package: missing .penguin_packaged_version file. "
934-
"This archive was not created with 'penguin package'."
934+
"This archive was not created with 'penguin pack'."
935935
)
936936
except FileNotFoundError:
937937
logger.error("tar command not found. Please ensure tar is installed.")
@@ -1002,8 +1002,8 @@ def unpackage(ctx, archive, output, force):
10021002
@verbose_option
10031003
@click.pass_context
10041004
def export(ctx, project_dir, out):
1005-
"""Alias for package"""
1006-
ctx.invoke(package, project_dir=project_dir, out=out)
1005+
"""Alias for pack"""
1006+
ctx.invoke(pack, project_dir=project_dir, out=out)
10071007

10081008

10091009
@cli.command(name="import", hidden=True)
@@ -1013,8 +1013,8 @@ def export(ctx, project_dir, out):
10131013
@verbose_option
10141014
@click.pass_context
10151015
def import_cmd(ctx, archive, output, force):
1016-
"""Alias for unpackage"""
1017-
ctx.invoke(unpackage, archive=archive, output=output, force=force)
1016+
"""Alias for unpack"""
1017+
ctx.invoke(unpack, archive=archive, output=output, force=force)
10181018

10191019

10201020
if __name__ == "__main__":

0 commit comments

Comments
 (0)