Skip to content

Commit

Permalink
Adapt API generation script
Browse files Browse the repository at this point in the history
  • Loading branch information
qvacua committed May 31, 2024
1 parent aabd13c commit dc99ead
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions RxPack/bin/generate_api_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,10 @@ def parse_error_cases(error_types):
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(
Expand Down
2 changes: 1 addition & 1 deletion bin/generate_sources.sh
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down

0 comments on commit dc99ead

Please sign in to comment.