def print_version(in_docker=False): print() print('LocalStack version: %s' % constants.VERSION) if in_docker: id = get_main_container_id() if id: print('LocalStack docker image id: %s' % id[:12]) if config.LOCALSTACK_BUILD_DATE: print('LocalStack build date: %s' % config.LOCALSTACK_BUILD_DATE) if config.LOCALSTACK_BUILD_GIT_HASH: print('LocalStack build git hash: %s' % config.LOCALSTACK_BUILD_GIT_HASH) print()
def print_runtime_information(in_docker=False): # FIXME: this is legacy code from the old CLI, reconcile with new CLI and runtime output print() print("LocalStack version: %s" % constants.VERSION) if in_docker: id = get_main_container_id() if id: print("LocalStack Docker container id: %s" % id[:12]) if config.LOCALSTACK_BUILD_DATE: print("LocalStack build date: %s" % config.LOCALSTACK_BUILD_DATE) if config.LOCALSTACK_BUILD_GIT_HASH: print("LocalStack build git hash: %s" % config.LOCALSTACK_BUILD_GIT_HASH) print()