mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 14:44:29 -04:00
also print platform and CPU info in version output
This commit is contained in:
parent
d9ef3d0bf8
commit
07a56f9d46
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@ __package__ = 'archivebox'
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import shutil
|
import shutil
|
||||||
|
import platform
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from datetime import date
|
from datetime import date
|
||||||
|
|
||||||
|
@ -210,6 +211,8 @@ def version(quiet: bool=False,
|
||||||
print(VERSION)
|
print(VERSION)
|
||||||
else:
|
else:
|
||||||
print('ArchiveBox v{}'.format(VERSION))
|
print('ArchiveBox v{}'.format(VERSION))
|
||||||
|
p = platform.uname()
|
||||||
|
print(p.system, p.release, p.machine)
|
||||||
print()
|
print()
|
||||||
|
|
||||||
print('{white}[i] Dependency versions:{reset}'.format(**ANSI))
|
print('{white}[i] Dependency versions:{reset}'.format(**ANSI))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue