MCPcopy
hub / github.com/aws/aws-cli / _cli_version

Method _cli_version

awscli/clidriver.py:545–562  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

543 )
544
545 def _cli_version(self):
546 version_string = (
547 f'{self.session.user_agent_name}/{self.session.user_agent_version}'
548 f' Python/{platform.python_version()}'
549 f' {platform.system()}/{platform.release()}'
550 )
551
552 if 'AWS_EXECUTION_ENV' in os.environ:
553 version_string += (
554 f' exec-env/{os.environ.get("AWS_EXECUTION_ENV")}'
555 )
556
557 version_string += f' {_get_distribution_source()}/{platform.machine()}'
558
559 if linux_distribution := _get_distribution():
560 version_string += f'.{linux_distribution}'
561
562 return version_string
563
564 def create_parser(self, command_table):
565 # Also add a 'help' command.

Callers 3

create_parserMethod · 0.95
mainMethod · 0.95
_set_loggingMethod · 0.95

Calls 3

_get_distribution_sourceFunction · 0.85
_get_distributionFunction · 0.85
releaseMethod · 0.45

Tested by

no test coverage detected