29:7e55aab1b3c4
Anton Shestakov <av6@dwimlabs.net>, Sun, 11 Sep 2016 01:08:22 +0800
.luacheckrc: use std=min (in hope of supporting Lua 5.2+ some day)

next change 30:c89104014973
previous change 25:7af20c4b0579

examples/version.lua

Permissions: -rw-r--r--

Other formats: Feeds:
local hglib = require 'hglib'
local client = hglib.Client.open()
local code, o, e, d = client:runcommand('version', '--quiet')
client:close()
if code == 0 then
print(o:match('%(version (%S+)%)'))
else
print("Couldn't get version: " .. e)
end
if #d > 0 then
print('Debug: ')
end