(self)
| 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. |
no test coverage detected