#!/usr/bin/env python
"""
    Copyright (C) 2013-2025 NICE s.r.l.
    All Rights Reserved

    This software is the confidential and proprietary information
    of NICE s.r.l. ("Confidential Information").
    You shall not disclose such Confidential Information
    and shall use it only in accordance with the terms of
    the license agreement you entered into with NICE.
"""

import sys
from dcvsmcli.utils import logger
from dcvsmcli.utils.return_codes import CliReturnCodes


def main():
    python_major = sys.version_info.major
    python_minor = sys.version_info.minor

    if python_major < 3 or (python_major == 3 and python_minor < 6):
        logger.get().error('Python 3.6 or greater is required to run the DCV Session Manager CLI, but version {}.{} is in use.'
                           .format(python_major, python_minor))
        return CliReturnCodes.GENERAL_ERROR

    from dcvsmcli import cli

    return cli.run()


if __name__ == '__main__':
    sys.exit(main())
