bundlewrap/libs/nextcloud.py
mwiegand d2f6d28137 wip
2021-06-30 22:55:44 +02:00

2 lines
229 B
Python

def occ(command, *args, **kwargs):
return f"""sudo -u www-data php /opt/nextcloud/occ {command} {' '.join(args)} {' '.join(f'--{name.replace("_", "-")}' + (f'={value}' if value else '') for name, value in kwargs.items())}"""