Skip to content

Commit

Permalink
fixup! TEMPORARY COMMIT - DO NOT MERGE
Browse files Browse the repository at this point in the history
  • Loading branch information
JockeTF committed Sep 18, 2024
1 parent eb036dd commit c2ab86c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
12 changes: 3 additions & 9 deletions fimfarchive/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#
# Fimfarchive, preserves stories from Fimfiction.
# Copyright (C) 2019 Joakim Soderlund
# Copyright (C) 2024 Joakim Soderlund
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -22,12 +22,6 @@
#


import sys
from fimfarchive.commands import cli

from fimfarchive.commands import RootCommand


if __name__ == '__main__':
cmd = RootCommand()
code = cmd(*sys.argv[1:])
exit(code=code)
cli()
12 changes: 11 additions & 1 deletion fimfarchive/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#
# Fimfarchive, preserves stories from Fimfiction.
# Copyright (C) 2020 Joakim Soderlund
# Copyright (C) 2024 Joakim Soderlund
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -22,15 +22,25 @@
#


from sys import argv
from typing import NoReturn

from .base import Command
from .build import BuildCommand
from .root import RootCommand
from .update import UpdateCommand


__all__ = (
'cli',
'Command',
'RootCommand',
'BuildCommand',
'UpdateCommand',
)


def cli() -> NoReturn:
cmd = RootCommand()
code = cmd(*argv[1:])
exit(code=code)
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ dev-dependencies = [
"types-tqdm",
]

[project.scripts]
fimfarchive = "fimfarchive.commands:cli"

[tool.uv.sources.jsonapi-client]
git = "https://github.com/JockeTF/jsonapi-client.git"

Expand Down

0 comments on commit c2ab86c

Please sign in to comment.