also print platform and CPU info in version output

This commit is contained in:
Nick Sweeting 2020-11-27 22:59:18 -05:00 committed by GitHub
parent d9ef3d0bf8
commit 07a56f9d46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@ __package__ = 'archivebox'
import os
import sys
import shutil
import platform
from pathlib import Path
from datetime import date
@ -210,6 +211,8 @@ def version(quiet: bool=False,
print(VERSION)
else:
print('ArchiveBox v{}'.format(VERSION))
p = platform.uname()
print(p.system, p.release, p.machine)
print()
print('{white}[i] Dependency versions:{reset}'.format(**ANSI))