1
0
Fork 0
mirror of synced 2024-05-19 12:02:54 +12:00
Rare/rare/commands/webview.py
loathingKernel 6a747ce0f7 Rare: Move sub-commands implementations in the commands subfolder
Right now we have two commands, and with possible third one comming soon.
2024-02-12 21:52:08 +02:00

14 lines
308 B
Python

import sys
from argparse import Namespace
from legendary.utils import webview_login
def launch(args: Namespace) -> int:
if webview_login.do_webview_login(
callback_code=sys.stdout.write, user_agent=f'EpicGamesLauncher/{args.egl_version}'
):
return 0
else:
return 1