freebsd-dev/stand/common
Kyle Evans afad05b233 lualoader: Add ability to intercept cli commands
If we failed to execute the input line as pure lua, run the command through
parse for consistent argument parsing. Pass the parsed arguments through to
a global "cli_execute" written in Lua, which is expected to either handle it
or pass it back through to interp_builtin_cmd (via loader.command).

lua-handled cli commands will then exist as globals in whatever module they
most belong in, and invocations at the loader prompt will magically dispatch
to them if they exist.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D14450
2018-02-20 17:46:50 +00:00
..
bcache.c
boot.c Move to tabs for indentation and to 8-space notches, per style(9). 2018-02-08 17:07:27 +00:00
bootstrap.h Move simple interpreter 'perform' into interp.c and call it 2018-02-07 23:27:38 +00:00
commands.c Don't leak memory when displaying help. 2018-01-23 18:01:27 +00:00
console.c
dev_net.c
dev_net.h
devopen.c
disk.c
disk.h
help.common
install.c Break out the interpreters (simple and forth) w/o ifdefs. This is 2018-01-31 22:46:05 +00:00
interp_backslash.c Move to tabs for indentation and to 8-space notches, per style(9). 2018-02-08 17:07:27 +00:00
interp_forth.c Set script.lang in the environment to either 'forth' or 'simple' to 2018-02-09 00:36:55 +00:00
interp_lua.c lualoader: Add ability to intercept cli commands 2018-02-20 17:46:50 +00:00
interp_parse.c Move to tabs for indentation and to 8-space notches, per style(9). 2018-02-08 17:07:27 +00:00
interp_simple.c Set script.lang in the environment to either 'forth' or 'simple' to 2018-02-09 00:36:55 +00:00
interp.c Move simple interpreter 'perform' into interp.c and call it 2018-02-07 23:27:38 +00:00
isapnp.c
isapnp.h
load_elf32_obj.c
load_elf32.c
load_elf64_obj.c
load_elf64.c
load_elf_obj.c Ignore relocation tables for non-memory-resident sections. 2018-02-05 23:35:33 +00:00
load_elf.c loader: fix endianness conversion 2018-02-09 10:20:16 +00:00
ls.c
Makefile.depend
md.c
merge_help.awk
metadata.c stand: Fix ubldr after r329190 2018-02-15 15:01:07 +00:00
misc.c There's no tainted data here, tag it as such to avoid the slew of 2018-01-23 18:01:40 +00:00
module.c
newvers.sh
part.c
part.h
paths.h
pnp.c Retire pnp.4th and the code needed only for 4th words used here. 2018-02-02 15:01:33 +00:00
rbx.h
reloc_elf32.c
reloc_elf64.c
reloc_elf.c Skip IRELATIVE relocations when loader processes ELF files. 2018-01-11 13:57:30 +00:00
self_reloc.c