From d4869a7940e62374831cba80515ecee1f8c55e7b Mon Sep 17 00:00:00 2001 From: Iakov GAN <82834333+iakov-aws@users.noreply.github.com> Date: Thu, 24 Oct 2024 18:37:45 +0200 Subject: [PATCH] release/0.3.11 (#974) --- cfn-templates/cid-cfn.yml | 4 ++-- cid/_version.py | 2 +- cid/cli.py | 8 +++----- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/cfn-templates/cid-cfn.yml b/cfn-templates/cid-cfn.yml index 8b46119a..05a97970 100644 --- a/cfn-templates/cid-cfn.yml +++ b/cfn-templates/cid-cfn.yml @@ -1,5 +1,5 @@ AWSTemplateFormatVersion: '2010-09-09' -Description: Deployment of Cloud Intelligence Dashboards v0.3.10 +Description: Deployment of Cloud Intelligence Dashboards v0.3.11 Metadata: AWS::CloudFormation::Interface: ParameterGroups: @@ -1625,7 +1625,7 @@ Resources: Description: An AWS managed layer with a cid-cmd package installed Content: S3Bucket: !Sub '${LambdaLayerBucketPrefix}-${AWS::Region}' - S3Key: 'cid-resource-lambda-layer/cid-0.3.10.zip' #replace version here if needed + S3Key: 'cid-resource-lambda-layer/cid-0.3.11.zip' #replace version here if needed CompatibleRuntimes: - python3.10 - python3.11 diff --git a/cid/_version.py b/cid/_version.py index 7414642e..b23a3900 100644 --- a/cid/_version.py +++ b/cid/_version.py @@ -1 +1 @@ -__version__ = '0.3.10' +__version__ = '0.3.11' diff --git a/cid/cli.py b/cid/cli.py index 757d0336..05addbd3 100644 --- a/cid/cli.py +++ b/cid/cli.py @@ -5,20 +5,18 @@ import click from cid.common import Cid -from cid.utils import get_parameters, set_parameters, get_latest_tool_version +from cid.utils import get_parameters, set_parameters, get_latest_tool_version, cid_print from cid._version import __version__ from cid.exceptions import CidCritical, CidError logger = logging.getLogger(__name__) -version = f'{__version__} Beta' +version = __version__ latest_version = get_latest_tool_version() prog_name="CLOUD INTELLIGENCE DASHBOARDS (CID) CLI" print(f'{prog_name} {version}\n') if __version__ != latest_version and latest_version != 'UNDEFINED': - print('\033[93mUPDATE AVAILABLE\033[0m') - print(f'\033[93mA new version {latest_version} is available, please consider update cid-cmd package via pip\033[0m\n\n') - logger.info(f'A new version {latest_version} is available, please consider update cid-cmd package via pip') + cid_print(f'A new version {latest_version} is available, please update pip install -U cid-cmd\n\n') def cid_command(func): def wrapper(ctx, **kwargs):