From 781d8bb445088ca6d403a3f5feaf05d0d3fd3f25 Mon Sep 17 00:00:00 2001 From: Sven Eberth Date: Mon, 4 Nov 2024 10:19:21 +0100 Subject: [PATCH] feat: Make `viur package install ...` more handy (#189) Every ViUR project I know stores the packages in the default targt. Therefore i suggest to change the argument order to make the command shorter because you can now ommit the profile, but specify version. --- src/viur_cli/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viur_cli/package.py b/src/viur_cli/package.py index f435370..efe0419 100644 --- a/src/viur_cli/package.py +++ b/src/viur_cli/package.py @@ -85,8 +85,8 @@ def get_version_info(software: str, version: str) -> tuple[str, str]: @cli.command() @click.argument('operation', type=click.Choice(['update', 'install'])) @click.argument('component', type=click.Choice(['vi', 'admin', 'scriptor', 'all'])) -@click.argument('profile', default='default') @click.argument("version", default="latest") +@click.argument('profile', default='default') def package(operation, component, profile, version): """ Performs installements and updates of ViUR Ecosystem packages