Anton Shestakov <av6@dwimlabs.net>, Sun, 23 Sep 2018 19:06:26 +0800
pipelines: Bionic has luarocks 2.4.2
examples/version.lua
Permissions: -rw-r--r--
local hglib = require 'hglib' local client = hglib.Client.open() local code, o, e, d = client:runcommand({'version', '--quiet'}) print(o:match('%(version (%S+)%)')) print("Couldn't get version: " .. e)