def _export_all(self, opts):
    if (not opts.filename):
        _exit_if_errors(['--file is needed to export all functions'])
    (exported_functions, errors) = self.rest.export_functions()
    _exit_if_errors(errors)
    _exit_on_file_write_failure(opts.filename, json.dumps(exported_functions, separators=(',', ':')))
    _success(f'All functions exported to: {opts.filename}')
def _export_all(self, opts):
    if (not opts.filename):
        _exit_if_errors(['--file is needed to export all functions'])
    (exported_functions, errors) = self.rest.export_functions()
    _exit_if_errors(errors)
    _exit_on_file_write_failure(opts.filename, json.dumps(exported_functions, separators=(',', ':')))
    _success(f'All functions exported to: {opts.filename}')