main/main
Some checks failed
/ job (push) Failing after 7m2s

This commit is contained in:
Marc Beninca 2024-06-21 16:26:33 +02:00
parent 46305b4a6c
commit 2a4e37a5eb
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -115,12 +115,12 @@ def install_commands(path: str) -> None:
(user / f"{COMMANDS_PREFIX}{command}").symlink_to(path) (user / f"{COMMANDS_PREFIX}{command}").symlink_to(path)
def main() -> None: def main(main: str) -> None:
path, *arguments = sys.argv path, *arguments = sys.argv
name = Path(path).name name = Path(path).name
if name == "__main__.py": if name == "__main__.py":
pidd.set_ssh(*arguments) pidd.set_ssh(*arguments)
pidd.install_commands(__file__) pidd.install_commands(main)
else: else:
function = getattr(pidd, name.replace("-", "_")) function = getattr(pidd, name.replace("-", "_"))
function(*arguments) function(*arguments)