Put my logo everywhere

Todo: 7808ee0a
This commit is contained in:
Krzysztof Rudnicki 2026-11-21 08:55:44 +01:00
parent 6b67fcc4f1
commit ed03bf76e7
3 changed files with 23 additions and 2 deletions

View File

@ -3,7 +3,10 @@ name = "steam-game-installer"
version = "0.1.0"
description = "Fast Steam game installs: depotdownloader for speed, steamcmd for recognition."
requires-python = ">=3.14"
dependencies = []
# kuhy's shared "Created by kuhy" credit, shown at the end of --help.
dependencies = [
"kuhy-credit @ git+https://github.com/kuhyx/utils@kuhy-credit-v0.3.0#subdirectory=kuhy_credit",
]
[project.scripts]
steam-game-installer = "steam_installer.cli:main"

View File

@ -5,6 +5,8 @@ from __future__ import annotations
import argparse
import sys
from kuhy_credit import credit_line
from steam_installer import (
config,
depotdl,
@ -21,7 +23,9 @@ from steam_installer.library import find_steam_root, list_libraries, pick_instal
def _build_parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(
description="Download an owned Steam game fast, then make Steam recognize it."
description="Download an owned Steam game fast, then make Steam recognize it.",
# kuhy's shared credit line (kuhy_credit, kuhyx/utils).
epilog=credit_line(),
)
parser.add_argument(
"target",

View File

@ -0,0 +1,14 @@
"""``--help`` ends on kuhy's shared credit line (kuhy_credit, kuhyx/utils)."""
import pytest
from kuhy_credit import URL, credit_line
from steam_installer import cli
def test_help_ends_with_the_kuhy_credit(capsys):
with pytest.raises(SystemExit) as exc:
cli.main(["--help"])
assert exc.value.code == 0
out = capsys.readouterr().out
assert out.rstrip().endswith(credit_line())
assert URL in out