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:
parent
aabd13c6ef
commit
dc99ead2ef
@ -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(
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user