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

sile-typesetter / sile / 9307175333

30 May 2024 06:08PM UTC coverage: 70.644% (-3.5%) from 74.124%
9307175333

push

github

web-flow
Merge b18390e74 into 70ff5c335

1910 of 2592 new or added lines in 108 files covered. (73.69%)

901 existing lines in 52 files now uncovered.

12203 of 17274 relevant lines covered (70.64%)

6112.16 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