move entry point into subpackage

add project.scripts entrypoint
This commit is contained in:
Onyx and Iris 2025-02-01 10:04:01 +00:00
parent e2be80fc4b
commit 917352772f
3 changed files with 5 additions and 5 deletions

View File

@ -0,0 +1 @@
from .duckypad import run

View File

@ -57,7 +57,7 @@ def register_hotkeys(duckypad):
step()
def main():
def run():
xair_config = configuration.get('xair')
with voicemeeterlib.api('potato') as vm:
@ -69,7 +69,3 @@ def main():
print('press ctrl+m to quit')
keyboard.wait('ctrl+m')
if __name__ == '__main__':
main()

View File

@ -35,6 +35,9 @@ dependencies = [
"vban-cmd>=2.5.2",
]
[project.scripts]
duckypad-cli = "duckypad_twitch.cli:run"
[project.urls]
Documentation = "https://github.com/unknown/duckypad-twitch#readme"
Issues = "https://github.com/unknown/duckypad-twitch/issues"