Add env command for printing environment info

This commit is contained in:
Ivan Habunek 2022-02-27 12:22:44 +01:00
parent c8dd4f8efe
commit 5ae4396ab4
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95
3 changed files with 16 additions and 0 deletions

View File

@ -1,11 +1,13 @@
from .clips import clips
from .download import download
from .env import env
from .info import info
from .videos import videos
__all__ = [
clips,
download,
env,
info,
videos,
]

9
twitchdl/commands/env.py Normal file
View File

@ -0,0 +1,9 @@
import platform
import sys
import twitchdl
def env(args):
print("twitch-dl", twitchdl.__version__)
print("Platform:", platform.platform())
print("Python", sys.version)

View File

@ -207,6 +207,11 @@ COMMANDS = [
"default": False,
}),
],
),
Command(
name="env",
description="Print environment information for inclusion in bug reports.",
arguments=[],
)
]