2 lines
229 B
Python
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())}"""
|