1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-10-05 13:07:12 +03:00

Adapt API generation script

This commit is contained in:
Tae Won Ha 2024-05-31 22:11:23 +09:00
parent aabd13c6ef
commit dc99ead2ef
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
2 changed files with 3 additions and 3 deletions

View File

@ -416,10 +416,10 @@ if __name__ == '__main__':
nvim_path = os.environ['NVIM_PATH'] if 'NVIM_PATH' in os.environ else 'nvim'
nvim_output = subprocess.run([nvim_path, '--api-info'], stdout=subprocess.PIPE)
api = msgpack.unpackb(nvim_output.stdout)
api = msgpack.unpackb(nvim_output.stdout, raw=False)
version = parse_version(api['version'])
functions = api['functions'] #[f for f in api['functions'] if 'deprecated_since' not in f]
functions = api['functions']
body = '\n'.join([parse_function(f) for f in functions])
result = extension_template.substitute(

View File

@ -1,7 +1,7 @@
#!/bin/bash
set -Eeuo pipefail
readonly clean=${clean:?"true or false"}
clean=${clean:?"true or false"}
readonly use_committed_nvim=${use_committed_nvim:?"If true, checkout the committed version of nvim, otherwise use the workspace."}
main() {