diff --git a/speedyf/process.py b/speedyf/process.py index 5b58b5d..3eff4c7 100644 --- a/speedyf/process.py +++ b/speedyf/process.py @@ -4,10 +4,13 @@ from subprocess import run semaphore = asyncio.Semaphore(2) -async def process_pdf(file_path, ctx): +def generate_cmd(opts): + return "cmd" + +async def process_pdf(ctx, file_path, opts): async with semaphore: - # Set status to runnin - cmd = "cmd" + # Set status to running + cmd = generate_cmd(opts) process = await asyncio.create_subprocess_exec(cmd) await process.await() # Set status to done.