Skip to content

Commit

Permalink
release/0.3.11 (#974)
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov-aws authored Oct 24, 2024
1 parent fc4d134 commit d4869a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cfn-templates/cid-cfn.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cid/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.3.10'
__version__ = '0.3.11'
8 changes: 3 additions & 5 deletions cid/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'<YELLOW>A new version {latest_version} is available, please update <BLUE><BOLD>pip install -U cid-cmd<END>\n\n')

def cid_command(func):
def wrapper(ctx, **kwargs):
Expand Down

0 comments on commit d4869a7

Please sign in to comment.