File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed
Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ deps:
3232
3333.PHONY : test
3434test : deps json
35- ./scripts/packspec.lua examples/packspec.1.lua
36- ./scripts/packspec.lua examples/packspec.1.json
35+ nvim -l ./scripts/packspec.lua examples/packspec.1.lua
36+ nvim -l ./scripts/packspec.lua examples/packspec.1.json
3737 ./deps/bin/busted
3838
3939.PHONY : json
4040json : deps
41- ./scripts/generate_json_schema.lua
41+ nvim -l ./scripts/generate_json_schema.lua
4242
4343.PHONY : clean
4444clean :
Original file line number Diff line number Diff line change 1- #! /usr/bin/env lua5.1
2-
31-- local cjson = require('cjson')
42local schema = require (' packspec.schema' )
53local format_json = require (' utils.format_cjson' )
6- local encoded_json = format_json (schema , " \n " , " " ).. ' \n '
7-
8- local file = io.open (' schema/packspec_schema.json' , ' w' )
94
5+ local encoded_json = format_json (schema , " \n " , " " ).. ' \n '
6+ local file = assert (io.open (' schema/packspec_schema.json' , ' w' ))
107io.output (file )
118io.write (encoded_json )
129io.close (file )
Original file line number Diff line number Diff line change 1- #! /usr/bin/env lua5.1
2-
31local function fatal (s , ...)
42 print (string.format (s , ... ))
53 os.exit (1 )
You can’t perform that action at this time.
0 commit comments