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

sile-typesetter / sile / 8288578143

14 Mar 2024 09:39PM UTC coverage: 64.155% (-10.6%) from 74.718%
8288578143

Pull #1904

github

alerque
chore(core): Fixup ec6ed657 which didn't shim old pack styles properly
Pull Request #1904: Merge develop into master (commit to next release being breaking)

1648 of 2421 new or added lines in 107 files covered. (68.07%)

1843 existing lines in 77 files now uncovered.

10515 of 16390 relevant lines covered (64.15%)

3306.56 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 self.initRepl() end
×
36
  _repl:run()
×
37
end
38

UNCOV
39
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