• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sile-typesetter / sile / 9400953783

06 Jun 2024 12:32PM UTC coverage: 62.819% (-11.3%) from 74.124%
9400953783

push

github

alerque
Merge branch 'develop'

1752 of 2644 new or added lines in 109 files covered. (66.26%)

2019 existing lines in 84 files now uncovered.

10830 of 17240 relevant lines covered (62.82%)

3306.33 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/core/repl.lua
UNCOV
1
local repl = {}
×
2

3
local _repl
4

UNCOV
5
function repl.initRepl ()
×
6
   _repl = require("repl.console")
×
7
   local has_linenoise, linenoise = pcall(require, "linenoise")
×
8
   if has_linenoise then
×
9
      _repl:loadplugin("linenoise")
×
10
      linenoise.enableutf8()
×
11
   else
12
      -- XXX check that we're not receiving input from a non-tty
13
      local has_rlwrap = os.execute("which rlwrap >/dev/null 2>/dev/null") == 0
×
14
      if has_rlwrap and not os.getenv("LUA_REPL_RLWRAP") then
×
15
         local command = "LUA_REPL_RLWRAP=1 rlwrap"
×
16
         local index = 0
×
17
         while arg[index - 1] do
×
18
            index = index - 1
×
19
         end
20
         while arg[index] do
×
21
            command = string.format("%s %q", command, arg[index])
×
22
            index = index + 1
×
23
         end
24
         os.execute(command)
×
25
         return
×
26
      end
27
   end
28
   _repl:loadplugin("history")
×
29
   _repl:loadplugin("completion")
×
30
   _repl:loadplugin("autoreturn")
×
31
   _repl:loadplugin("rcfile")
×
32
end
33

UNCOV
34
function repl:enter ()
×
35
   if not _repl then
×
36
      self.initRepl()
×
37
   end
38
   _repl:run()
×
39
end
40

UNCOV
41
return repl
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc