mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
show PUID, PGID, ENFORCE_ATOMIC_WRITES, and OUTPUT_PERMISSIONS in version output header
This commit is contained in:
parent
89175ccb22
commit
ca16c88a3d
1 changed files with 7 additions and 0 deletions
|
@ -71,7 +71,11 @@ from .config import (
|
||||||
IS_TTY,
|
IS_TTY,
|
||||||
DEBUG,
|
DEBUG,
|
||||||
IN_DOCKER,
|
IN_DOCKER,
|
||||||
|
PUID,
|
||||||
|
PGID,
|
||||||
USER,
|
USER,
|
||||||
|
ENFORCE_ATOMIC_WRITES,
|
||||||
|
OUTPUT_PERMISSIONS,
|
||||||
PYTHON_BINARY,
|
PYTHON_BINARY,
|
||||||
ARCHIVEBOX_BINARY,
|
ARCHIVEBOX_BINARY,
|
||||||
ONLY_NEW,
|
ONLY_NEW,
|
||||||
|
@ -210,6 +214,7 @@ def version(quiet: bool=False,
|
||||||
else:
|
else:
|
||||||
# ArchiveBox v0.5.6
|
# ArchiveBox v0.5.6
|
||||||
# Cpython Linux Linux-4.19.121-linuxkit-x86_64-with-glibc2.28 x86_64 (in Docker) (in TTY)
|
# Cpython Linux Linux-4.19.121-linuxkit-x86_64-with-glibc2.28 x86_64 (in Docker) (in TTY)
|
||||||
|
# IN_DOCKER=True USER=501:20 DEBUG=False IS_TTY=True TZ=UTC SEARCH_BACKEND_ENGINE=ripgrep
|
||||||
print('ArchiveBox v{}'.format(VERSION))
|
print('ArchiveBox v{}'.format(VERSION))
|
||||||
p = platform.uname()
|
p = platform.uname()
|
||||||
print(
|
print(
|
||||||
|
@ -223,6 +228,8 @@ def version(quiet: bool=False,
|
||||||
f'DEBUG={DEBUG}',
|
f'DEBUG={DEBUG}',
|
||||||
f'IS_TTY={IS_TTY}',
|
f'IS_TTY={IS_TTY}',
|
||||||
f'TZ={os.environ.get("TZ", "UTC")}',
|
f'TZ={os.environ.get("TZ", "UTC")}',
|
||||||
|
f'DB=SQLite v{CONFIG["SQLITE_VERSION"]} ({CONFIG["SQLITE_JOURNAL_MODE"]} {CONFIG["SQLITE_EXTENSIONS"])',
|
||||||
|
f'FS={"atomic" if ENFORCE_ATOMIC_WRITES else "non-atomic"} {PUID}:{PGID} ({OUTPUT_PERMISSIONS})',
|
||||||
f'SEARCH_BACKEND_ENGINE={SEARCH_BACKEND_ENGINE}',
|
f'SEARCH_BACKEND_ENGINE={SEARCH_BACKEND_ENGINE}',
|
||||||
)
|
)
|
||||||
print()
|
print()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue